Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there something like EVALUATE() in vfp?
Message
De
23/04/2005 16:45:45
 
 
À
23/04/2005 15:52:04
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01007812
Message ID:
01007827
Vues:
29
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform