Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to Text File to Retain Trailing Spaces
Message
From
08/01/2003 17:12:48
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00739440
Message ID:
00739586
Views:
24
Allan,

Are there other fields (non-memo) being exported into the same text file? If so, and if the memo field for a given record is longer than 50 characters, how are the other fields supposed to be represented in the export file?

As an example, lets assume the user types 78 characters (not all spaces) in the memo field. Do you need 2 records (lines) in the export file?

>Steve,
>
>The scenario is as follows:
>We have developed an application that allows the user to enter free form notes (stored in VFP MEMO).
>Our application has to be able to 'export' our data to the end user's accounting app in an ASCII format.
>They would like this MEMO field to be segmented into 50 character records in the ASCII file.
>Now, if the user (in our VFP app) enters 50 or more consecutive spaces, that
>portion of the memo creates a record with "" in the ASCII file.
>I would like to be able to retain these spaces.

>>Why is the empty string a problem?
>>
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform