Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding ASCII characters to output
Message
De
15/01/2001 22:55:27
 
 
À
15/01/2001 19:13:35
Garry Sankowsky
Zodiac Publications
Tolga, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00464007
Message ID:
00464055
Vues:
20
>I am trying to create an ascii file from a database for exporting to a Bank as a direct payment.
>
>For our previous bank it was simple, I used ? to output various fields, separated by commas.
>
>With our new bank it is a bit more complicated. The file starts with a 'Descriptive record' which is the first
>line. At byte 121 it needs a carriage return and byte 122 a line feed. How do I tag these onto the end of the line?
>At the moment the line looks like this-
>01NAB YURUGA NURSERY 189989PAYMENT DATA120101 0
>Carriage return needs to go in where the last 0 is.

Ratherh than using ? to produce the output, why not construct the entire exchange as a string with explicit characters in place in the string, and write the string to a file using STRTOFILE()?

Alternatively, a ? Sends a CR/LF pair at the start of the output for the line, so use ?? (or ???) to create the line up to the end, and then issue a ? to add a CR/LF to the end of the line.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform