You're welcome, Denis! =)
~~Bonnie
>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.