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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.