Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EVALUATE() Equivalent function in .NET
Message
From
17/07/2007 18:53:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/07/2007 18:40:55
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01241330
Message ID:
01241336
Views:
28
>Thanks. But I don't think you're following what I'm asking.
>
>Yes. You can build a string to submit an SQL query, but I need to be able to "merge" into that string variables that may change from query to query that's why I'm looking for some equivalent function to EVALUATE().

I was imagining - I don't remember my C# classes very well, but I thought it worked something like assigning a value, more or less like this:
SQLObject.SQLCommand = "select FirstName, LastName from Client"
Of course I don't remember the name of the actual classes, or properties, but if the assignment is similar to the above, you can easily use variables, e.g.:
SQLObject.SQLCommand = "select " + VarFieldList + " from Client"
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform