Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Write Data of DBF file in Text File
Message
From
11/03/2013 10:34:00
 
 
To
11/03/2013 08:31:09
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01567961
Message ID:
01567985
Views:
32
Thanks Sir,
I tried the following code and it is working fine.
SELECT Dummy
set textmerge to Myfile.ps
scan
\<< tRIM(pS) >>
endscan
set textmerge to
set textmerge off
The code is Working fine and the file size is also small. Only one little problem. The First Line in the reprocessed output file is coming blank as compared to the original file Ps/text file where the PS code starts from the first line itself.

kindly help


>I can only give you a quick answer, I'm too bus with other work to really study this. As far as I can see, my code should work, but with one small change: strtofile(trim(dummy.ps),m.lcNewFile,.T.). You need to start the debugger and see what's going on.
>
>>Sir,
>>It is not working. I tried this
>>
>>Local lcFile, lcText
>>m.lcFile = [1021337392.ps]
>>Create Cursor Dummy (PS c(254), pos i,pageno n(2),recordnum i)
>>Append From (m.lcFile) Sdf && Creates a Cursor
>>
>>m.lcNewFile='1.ps'
>>Select dummy
>>Scan
>>   strtofile(dummy.ps,m.lcNewFile,.T.)
>>Endscan
>>
>>
>>The above creates a PS file with 1.PS name but it is not the file that is required.
>>(1) There is no text inside except data of Record Number 1
>>(2) The Size of 1.PS file has considereby increased althogh the initial file was of just 15-20 Kb.
>>
>>Kinldly Help
>>Sample PS can be Downloaded from
>>https://www.dropbox.com/s/6x5an3dyg8syvmx/1021337392.ps
>>
>>Regards
>>Harsh
>>
>>
>>
>>
>>>>Using the following code I am appending Text from a PS file in DatabAse file.
>>>>
>>>>Local lcFile, lcText
>>>>m.lcFile = [1021337392.ps]
>>>>Create Cursor Dummy (PS c(254), pos i,pageno n(2),recordnum i)
>>>>Append From (m.lcFile) Sdf
>>>>
>>>>
>>>>After processing the Data base File , I want again same PS file.
>>>>
>>>>Kinldy Guide, I tried but the could not get the same format for PS file as it was before.
>>>>
>>>>Sample PS can be Downloaded from
>>>>
>>>>https://www.dropbox.com/s/6x5an3dyg8syvmx/1021337392.ps
>>>>Regards
>>>>Harsh
>>>
>>>There are many ways, this is one of them.
>>>
Use dummy
>>>Scan
>>>   strtofile(dummy.ps,m.lcNewFile,.T.)
>>>Endscan
Harsh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform