Oh, I see, I understand now. I think it is a good style to avoid trouble and bug, I will try to use it too in my program.
Thanks.
>>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)
Power Wong
Every problem will have a solution, the only problem is that can you find it out.