dbTalk Databases Forums  

Converting Pdox queries to SQL

comp.databases.paradox comp.databases.paradox


Discuss Converting Pdox queries to SQL in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rey
 
Posts: n/a

Default Converting Pdox queries to SQL - 01-11-2006 , 05:20 PM






Howdy all.
Looking to convert many of the queries in a program to SQL...

I'd like to somehow be able to use the "Show SQL" feature
programmatically against a number of QBEs in a directory but haven't
found anything that points to this feature as a standalone .exe or
function.

Does anyone have suggestions of how I might go about this? Pulling the
inline QBEs into notepad and then running Show SQL is going to get
mighty tedious 8-)

I understand some complicated queries such as those using the ! will
not be able to be converted but at least I could trap an err and write
the msg to a table field.

Thanks in advance,
Rey


Reply With Quote
  #2  
Old   
Bertil Isberg
 
Posts: n/a

Default Re: Converting Pdox queries to SQL - 01-12-2006 , 05:34 AM






Rey

You can open the QBE files from a form and with the QBE file open have a
form with button with code menuAction(MenuQbeShowSql).


This form has to have MouseActivates unchecked and it should probably be
a dialog.

To open the Query Editor from ObejctPAL, try this

var
P OLEAuto
endVar

P.open("Paradox.Application")
P.QueryDesign("d:\\work\\sample.qbe")

--
Bertil Isberg
CTECH
Paradox Buglist: http://web.comhem.se/~u82608896/

remove spamfilter (reversed) to reply

Reply With Quote
  #3  
Old   
Rey
 
Posts: n/a

Default Re: Converting Pdox queries to SQL - 01-31-2006 , 12:57 PM



Howdy, Bertil.
Thanks for reply. Had tried this earlier and didn't work - for me. Just
retried and in conjunction w/sendkeys, worked. Must had to have my mind
on it or something else 8-)

Thanks again.

Rey


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.