General information
Category:
Coding, syntax & commands
>>In order to communicate with Sterling Commerce EDI products I need to create a flat file that contains multiple record types. In COBOL I did this with a master record then an infinite number of REDEFINEs for that record for each record type. How does one do this in VFP?
>>
>>Regards/yb
>
>
>You need to write things out to an ASCII file. Look at the low level file functions (FCREATE, FWRITE, etc.)
Thanks for the prompt response.
I could create multiple cursors for the record types, but neither fwrite or fputs take the cursor as an arguement:
For Example
create cursor rectyp1 (field1 c(10), field2 n(2,1)...)
...
nfid=fcreate("temp.tmp")
=fputs(nfid,rectyp1)
...
Any ideas?
regards/yb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only