Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there something like EVALUATE() in vfp?
Message
From
23/04/2005 16:45:45
 
 
To
23/04/2005 15:52:04
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007812
Message ID:
01007827
Views:
28
Bonnie,
Thank you. Thats what I need!

Denis



>Denis,
>
>Yes, you have to use Reflection. Check out Rick's article about it:
>
>http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htm
>
>~~Bonnie
>
>
>
>
>>Hi,
>>Can I evaluate string expression in .NET like in VFP Evaluate() or macro substitution?
>>I looking for way evaluate string for example "loRow("field")+"_suffix""
>>Next code just picture what I'd like to do. There must be mapping between source and destination tables to import data.
>>
>>Dim loRow As DataRow
>>Dim loNewRow as DataRow
>>Dim lcString as String = "loRow("field")+"_suffix"
>>
>>For Each loRow In DataSet.Tables("source").Rows
>> loNewRow = DataSet.Tables("destination").NewRow()
>> loNewRow("dest_field") = EVALUATE(lcString)
>> DataSet.Tables("destination").Rows.add(loNewRow)
>>Next
>>
>>Is there way to do that?
>>
>>Denis.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform