Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equiv. to COBOL Redefine
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00083230
Message ID:
00083244
Vues:
18
Yuval,

I'd use the TEXTMERGE for this:

set textmerge to ExportFile
set textmerge on

* process loop here

do case
   case RecType = 1
      \<<Table1.field1>><<Table1.Field2>>
   case RecType = 2
      \<<Table2.field1>><<Table2.Field2>><<Table2.Field3>>
   case RecType = 3
      \<<Table1.field1>>
endcase

set textmerge off
set textmerge to


>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform