Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a file by using parameter
Message
 
 
To
14/07/2001 08:22:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00528463
Message ID:
00530664
Views:
18
>Thanks all of you for your help first.
>Nadya, I tried your suggestion:
>copy file temp.txt to (m.lcFileName)
>it works well. Then I tried to skip the "m.":
>copy file temp.txt to (lcFileName)
>it works too. Can you explain to me what does the "m." means? I tried to search it in HELP but failed to find it.

Power,

m. means, that it's a variable, not a field name. Basically, it's not necessary to preceed variable name with m. However, you never know, how somebody can name fields in his/her table. Say, somebody needs a field called tcName (as it was quite recently in one of Jill's message). If you name your parameter tcName and use it without m. prefix, field name would take precedance. That's why couple of months ago I began to use m. prefix everythere in my programs. Before I didn't pay attention to such minor detail. Also I believe, that style of one of my colleagues made an influence on me. One of my colleagues, whos programming technique and style I respect most among other contractors, uses them everythere, where needed. I adopted this idea in my style.

>
>
>>>You could try copy file temp.txt to &filename
>>
>>You don't need to use macro.
>>
>>lcFileName='myfile.txt'
>>copy file temp.txt to (m.lcFileName)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform