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 > Re: VFP 9: #def...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 855 of 861
Post > Topic >>

Re: VFP 9: #define constants

by Sergey Berezniker <spam@[EMAIL PROTECTED] > Jul 21, 2008 at 08:56 PM

Gene Wirchenko wrote:

>      Well, well.  That is certainly poorly do***ented.  The #define
> do***entation states that substitutions are not done inside of
> quotation marks, but does not say anything about "[" and "]".  I did
> not even think of them as being different.  After all, they delimit
> strings, too.
> 

I'm pretty sure that VFP wouldn't perform substitution if [] were used 
to delimit string literals only. However they are "overloaded" in VFP 
and could be used in arrays and UDFs

? myarray[i]
? myudf["Some String Parameter"]
* or
? myudf[[Some String Parameter]]

-- 
--sb--

VFP MVP
 




 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:52 CST 2008.