Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EVALUATE() Equivalent function in .NET
Message
From
17/07/2007 18:40:55
 
 
To
17/07/2007 18:36:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01241330
Message ID:
01241332
Views:
34
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().

bob

>I really suck at data handling in .NET - I am forever spoiled by the relative simplicity of VFP <g>, but I seem to remember that you have to assign a string to some object, a string that contains the SQL statement (SELECT, INSERT, or whatever you need). In this case, I believe that at least in this particular instance, you don't need the flexibility of evaluate(), you just generate the string as an expression.
>
>>Is there any equivalent function to EVALUATE() in C#?
>>
>>I need to be able to simulate the TEXT TO function for dynamically building SQL queries based on values generated by the system, for example I'd like to do something like this:
>>
>>"SELECT * FROM customers WHERE record_id = '<>'"
>>
>>Where the ds.record_id is some class property or field which may not be known in advance i.e., it could be ds.name or ds.somethingelse. And the "SELECT" statement is also not know in advance.
>>
>>Any ideas on how to accomplish this in C#?
>>
>>Thanks in advance.
>>
>>Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform