Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force VF to use a String as a Reference
Message
From
09/04/2001 16:42:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Force VF to use a String as a Reference
Miscellaneous
Thread ID:
00493770
Message ID:
00493770
Views:
49
Hello everyone!

How can I force VF (version 6) to use a character string as a table.field reference instead of as a character value, when it is expecting a value?

i.e.:
REPLACE (ALLTRIM(DkT_map.Dfilename) + "." + (ALLTRIM(DkT_map.Dfieldname)))
;WITH ("dkImport." + (ALLTRIM(DkT_map.Tfieldname)))

(ALLTRIM(DkT_map.Dfilename) + "." + (ALLTRIM(DkT_map.Dfieldname))) works fine.
VF uses this string just fine as a reference to the field I want to replace.

("dkImport." + (ALLTRIM(DkT_map.Tfieldname))) does Not work.
VF uses it as a string value, replacing the Replace field with the string “dkimport.c2"

You don’t need to be polite, just put me out of my misery.

Thanks for the help!

Gaylen Miller
Next
Reply
Map
View

Click here to load this message in the networking platform