Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > VFP 9: #define ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 855 of 861
Post > Topic >>

VFP 9: #define constants

by Gene Wirchenko <genew@[EMAIL PROTECTED] > Jul 20, 2008 at 06:15 PM

I know that VFP will not perform substitutions within a string as
in
          #define SUPERLATIVE better
          sentence="Father knows SUPERLATIVE."
but is there a way to get a similar effect?

     I use SQLSEL as in
          #define SQLSEL select
          ...
          SQLSEL clcode,clname from ccli order by clcode
to differentiate between xBASE select statements and SQL select
statements.

     Occasionally, I need to build an SQL statement with a subquery in
it and would like to build the expression as in
         wherecond=;
          "&limitexpr and "+;
          "trnnbr in (SQLSEL wonbr from cwko where woccode=currwocc)"
This does not work.  I have to use "select" and make a note (so that
when I search for SQL select statements, I can find them all.

     Any ideas?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
     I have preferences.
     You have biases.
     He/She has prejudices.
 




 7 Posts in Topic:
VFP 9: #define constants
Gene Wirchenko <genew@  2008-07-20 18:15:12 
Re: VFP 9: #define constants
Sergey Berezniker <spa  2008-07-20 21:25:54 
Re: VFP 9: #define constants
"Paul Pedersen"  2008-07-20 18:55:47 
Re: VFP 9: #define constants
"Olaf Doschke"   2008-07-21 16:27:25 
Re: VFP 9: #define constants
Gene Wirchenko <genew@  2008-07-21 17:30:47 
Re: VFP 9: #define constants
Sergey Berezniker <spa  2008-07-21 20:56:53 
Re: VFP 9: #define constants
Gene Wirchenko <genew@  2008-07-21 18:36:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 10:14:00 CST 2008.