Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename public variables ??
Message
From
08/06/1997 08:12:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/06/1997 10:25:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00035353
Message ID:
00035585
Views:
38
> sele filename > X = afields(flds) > dime flds2[X] > for i = 1 to X > mnewfld = 'm.'+flds[i,1] && Should create the m.FieldName(i) > moldfld = 'xxx_'+flds[i,1] && the memory variables > &mnewfld = &moldfld && Move the value into the "m." field > endfor > > You might have to play with it just a tad, but I've used similar code > often. just about what I wanted to suggest, with a bit of difference: sele filename X = afields(flds) for i = 1 to X xxx="xxx_"+flds[i,1] m_dot="m."+flds[i,1] if type(xxx)#"U" store (xxx) to (m_dot) endif endfor This checks for unmapped fields and skips them, and, besides, reminds me of the joy I had when first I discovered that name expressions can be used to create variables :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform