Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro changes variable type
Message
From
07/02/2002 12:03:10
 
 
To
07/02/2002 11:55:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616675
Message ID:
00616718
Views:
36
Yes, but what are you executing with lcCommand? If lcCommand calls a procedure/function and sends i as a parameter by reference, then i might get changed:
PROC T1
LOCAL i
i=1

DO c:\temp\t2 WITH i   && by ref
*DO c:\temp\t2 WITH (i) && by val

MESSAGEBOX(VARTYPE(i))

PROC T2
LPARAMETERS tnI

tnI="Salut"
>>Stephane,
>>Put a breakpoint on VARTYPE(i)="N" and check lcCommand right after it has been changed to "C".
>>
>
>VARTYPE(i) = "N" is true before &lcCommand and false after.
>lcCommand has not changed before or after it is executed as a macro.
>
>Stephane.
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform