Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cold25
  • Content: Threads
  • Order by date
  1. cold25

    Close an application, only if it's open?

    Hi. My vb6 program launches a program (Acrobat Reader, for example), and then does some stuff to the opened program. When the vb6 program ends, it automacially closes the program that it launched earlier. However, the problem is that if the user closes the program that is launched by the vb6...
  2. cold25

    Pass variable from script to vb program?

    Hi. My vb6 program calls a script which does some stuff, then waits for the WshShell.AppActivate "" method to become true. When it does equal true, I want to set a variable in the script to 1 (or some value) and pass it back to the vb6 program that initially launched the script, so it knows that...
  3. cold25

    Disable certain objects on a form at runtime?

    Hi. I have a VB6 program that when executed, opens a form with a "Go" command button on it, a "File" menu in the upper left (created with menu editor), and the "X" close button in the upper right of the title bar. The thing is, when I click the "Go" button, I want to disable the File menu and...
  4. cold25

    Keep script's focus where it's should be?

    Hi. My script launches a scanning program and then performs some sendkeys commands and other things, too. My problem is that I need the script to execute its commands only on the program that it launched (the scanning program), and not on other programs or the computer itself, if the user...
  5. cold25

    Trouble with a Do While loop

    I have attempted to include a simple Do While Not loop. It's supposed to keep checking for a modal screent to pop up, until the screen pops up, and then move on. However, the line Do While Not WshShell.AppActivate "HP Scan Picture" keeps causing an error stating "Expected statement." I'm not...
  6. cold25

    Pause script to wait for modal screen?

    Hi. The script I'm writing launches a program that performs an action that takes a bit of time. This time can vary, depending on what is selected earlier in the script. After the action is performed, a modal box pops up for the user to decide wether to perform the action again, or quit. I'm...
  7. cold25

    Runtime errors, either way

    Hi. I've modified a vb script example from the msdn page to start my own script. When I put it inside my VB6 program and try to run it like this: Dim WshShell Dim WScript Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run """C:\Program...
  8. cold25

    Simple script errors?

    Hi. I'm trying to learn vbs and get some basic things to work. I have two main questions right now concerning the script I've written, below: 1. I'm trying to write a simple script in notepad to automate the launching of an exe file (AcroRd32.exe). I've saved the file where the script is...
  9. cold25

    sendkeys won't keep sending keys

    Hi. Might anyone know why the code I have below stops short, after executing the program Hpqdirec.exe? It does nothing else, unless I click the launch button a second time, and then it doesn't execute all of my sendkey commands. I've just begun learning about vbs & sendkeys so I'm not sure what...
  10. cold25

    Why are my Dbase files unrecognizable outside Delphi?

    My database program creates .dbf files, which I understand as being DBase files. I can display, edit and save my progress on these new .dbf files on my form's DBGrid. So, this table works fine with my delphi program. What I'm wondering is why is it that Excel gives me the message "This file...
  11. cold25

    Stick to one hard drive, please!!

    I have created a Delphi database program that opens .dbf tables to a DBGrid. It also can create new .dbf tables, which it then displays nicely on the DBGrid. The problem is this: the computer has 2 hard drives, C & D. Even though I installed Delphi to the D drive, it demands I create the...
  12. cold25

    What is AddIndexDef about?

    The code below displays how I'm currently making new database (.dbf) tabes to use and display in my TDBGrid. It creates tables for me, however I don't understand the lower section concerning IndexDefs, where I'm supposed to describe indexes. I found this code in Delphi's Help and have modified...
  13. cold25

    TQuery help?

    I'm trying to do a TQuery that just executes an SQL statement that the user enters into a TEdit box called edit1. The SQL statement I'm entering into the TEdit box is as follows: SELECT * FROM "021103.dbf" WHERE EXS = "t" (021103.dbf is the table displayed by the grid, which...
  14. cold25

    Path not found??

    When I try to execute an sql query statement such as Database1.Execute(SQLstmt, stmtParams, False, @Cursor); through TQuery, an exception is now raised that says "Project Project1.exe raised exception class EDBEngineError with message 'Path not found. File C:\Program Files\Common...
  15. cold25

    Simple TQuery help?

    I'm trying to make a TQuery work that I'm using parameters in. I think I'm close, but so far it's never worked yet. Below is the procedure I'm using. I've made it from examples I've seen on this web site. My database table is named 1nin.dbf. I'm trying to search a field in the table named EXS...
  16. cold25

    How can I edit read only records in a DBGrid??

    I am displaying records in a DBGrid. When I select all records that meet my query criteria, they are now in a "read only" format. This does me no good, because I want to calculate all the values in the Color field (for example) of my newly selected records to Red. However, they are all...
  17. cold25

    Parameters in SQL statements???

    I have modified the following example block of code so a user can specify what city is searched for though the variable "searchCity." My question is how can I replace some of the other things in the SQL statement with other parameters? For example, I have included the lines inside the...
  18. cold25

    ApplyUpdates problem on 2nd time.

    Problem is after editing a .dbf table, saving it once, editing it again & then trying to save it a 2nd time, it creates this exception: "Project Project1.exe raised exception class EDBEngineError with message 'Couldn't perform the edit because another user changed the record.' All I have...
  19. cold25

    Add field at runtime w/o deleting orig. fields??

    I'm trying to add a field to a .dbf file in a DBGrid at runtime. I've tried adding a persistent column through DBGrid1.Columns.Add; but this only results in one new column being added and all the original columns being deleted. How can I just add columns at runtime, which I can fill with data...
  20. cold25

    Cut, Copy, Paste in DBGrid1??

    I just need to know how to cut, copy and paste values held in the individual cells of a DBGrid. I have read about Clipbrd, but this appears to only work w/ things like RichEdit, and not the DBGrid. Any help would be greatly appreciated! Thanks, cold25

Part and Inventory Search

Back
Top