Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable disappears after REPORT FORM
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00473072
Message ID:
00473110
Views:
21
I think that's the number 13... :)

>I tried using 'myreport' and i tried using 'tablealias' for the table alias. The REPORT FORM still stomps on my rpt013 variable that hold the temporary file name when it returns to the .prg. At this point guess i will just DELETE FILE(testrpt013a). I know that works, just wondering what the REPORT is doing that it loses my variable expression that has the file name.
>
>thanks for the info on & and ()
>
>>Brenda, did you try to change the variable name?
>>myreport = "rpt013a"
>>REPORT FORM (myReport)
>>
>>&rpt013a is macro substitution and (rpt013a) is a name expression.
>>
>>VFP Help says: Whenever possible, use a name expression instead of macro >substitution. A name expression operates like macro substitution. However, a >name expression is limited to passing character strings as names. Use a name >expression for significantly faster processing if a command or function >accepts a name (a file name, window name, menu name, and so on).
>
>
>>>.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform