If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > Recording Macro/Script in Paradox 8

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-19-04, 06:28
mcornbill mcornbill is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
Recording Macro/Script in Paradox 8

Hi all

I have to run 4 queries and save the answer after each one every week. Is there like a macro function whereby it will run the four one after each other and then save the answers itself to whatever I want to call them.

Cheers
Mark
Reply With Quote
  #2 (permalink)  
Old 03-19-04, 09:23
lmckelvy lmckelvy is offline
Registered User
 
Join Date: Oct 2003
Posts: 107
Yes, you can do that. Design your queries and save them. Then in your script, you simply paste them into the code (using EDIT->PASTE FROM). In it's simplest form it would look something like this:

Code:
var

qVar   query

endvar

;the PASTE FROM starts immediately after "qVar ="

qVar =  Query

:myAlias:MyDb.DB | Code   | Description | 

                            |Check  | Check       | 

EndQuery

qVar.executeQBE(":priv:answer.db") ;you can change this to be a different table name and location.

;(repeat 3 more times)

Last edited by lmckelvy; 03-19-04 at 11:11.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On