Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equiv. to COBOL Redefine
Message
 
 
À
07/03/1998 16:44:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00083230
Message ID:
00083243
Vues:
19
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform