Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equiv. to COBOL Redefine
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00083230
Message ID:
00083244
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform