>I am required to export from VFP to a 7-bit ASCII file. Does anyone know how I can get there from here?
>
When you say '7-bit ASCII', do you mean that a byte may contain a legal value between 0-255, and you have to encode it, do you have to use the high order bit for parity, or should each byte only contain values between 0-127, disallowing any extended ASCII?
(1) Use an encoder as suggested already. You need to know what type of decoder runs at the other end.
(2) You can either scan each string before writing it, computing the parity byte-by-byte before writing it. You could use STRTRAN() to translate characters with native incorrect parity by generating a list of characters to translate and the matching translated character into two memvars, and run STRTRAN() against it before writing it.
(3) You do nothing, other than not use any character value with the high-order bit set.
If you're using FTP or a similar facility, the translation between systems may be done behind the scenes if using text-type transfers; it also can convert end-of-line markers automagically, too. Rick Strahl's "Internet Applications with Visual FoxPro 6.0" contains sample code to send binary data using the http protocol, so if that's what you're trying to do, it's a good starting point.
My guess is that you're either in situation (3), in which case, just don't use any extended ASCII in the output, or (1), in which case, you need to know what the other end will do with the 7 bit stream when received to decode it. It's likely that if it's (1), the tool that performs the transfer may already have this built-in when it detects a binary transfer, as in the text ftp transfer of files between a PC and a Mac or ?nix box, or running something such as Attachmate to link to a larger platform.