Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY FILE foible
Message
From
30/05/2001 09:48:24
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00512607
Message ID:
00512628
Views:
13
Ben,

Is this your exact code, or an example?
LOCAL lcFileName
lcFileName = THIS.FireProcedure()

COPY FILE &lcFileOut. TO &lcResultsFile.
Where do you use "lcFileName" in the COPY command?
Why the periods after "&lcFileOut" and "&lcResultsFile" ?



>Hi,
>
>I have a class, that calls a method, that runs a procedure returning the unique filename of a delimited text file to the calling method... This text file is then copied to a predetermined results file name.
>
>i.e.
>****************************************
>LOCAL lcFileName
>lcFileName = THIS.FireProcedure()
>
>COPY FILE &lcFileOut. TO &lcResultsFile.
>****************************************
>
>Previous tests have provided succesful results, the resulting text file containing all necessary fields delimited by the '$' character, however my last run through gave me the correct number of fields and records but the first field contained the first few lines of the procedure file being run. The remaining fields were all empty strings.
>
>e.g.
>"LPARAMETERS taxReturnValues"$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>""$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>"EXTERNAL ARRAY taxReturnValues"$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>""$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>"IF PARAMETERS() < 1"$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>" taxReturnValues[2] = """$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>"ENDIF"$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>""$""$""$""$""$" "$""$""$""$""$""$""$""$""$""$""
>
>I noticed a near identical problem whilst creating an INI file using Win32API functions. Instead of the file showing my inserted section and values it showed the first few lines of my source code. I first noticed this after installing Visual Studio SP5.
>
>Has anyone had similar problems or can someone point me towards a possible/probable cause/solution.
>
>Many thanks in advance,
>
>Ben Sugden
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform