Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro subst. within functions
Message
From
06/05/1999 08:44:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00213385
Message ID:
00215661
Views:
26
>Hello to all
>
>These are two questions:
>
>1) Wich are the correct syntaxis?:
>
>varname="list1"
>dimension &varname(1,3)
> or
>dimension &varname.(1,3)
>
>2) And in this other case?:
>
>ArrayLenght=alen(&varname,1)
> or
>ArrayLenght=alen(&varname.,1)
>
>I have problems with the macro substitution in some VFP 6 functions.
>Does the macro substitution works within this functions?

It works - and the dot is not mandatory, except when you need a dot to be part of your command, and then you have to put two dots:
lcAlias=alias()
replace &lcAlias..fieldname with whatever
In this case the first dot denotes the end of macro, and the other is required by the syntax of the sentence.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform