DataViews allow you to provide a filter and sort expression.
Otherwise you need to look into parsing it yourself (perhaps a 3rd party
component), or .NET Scripting, or something similar.
-mike
MVP
"Ditchit" <an*******@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
Anyone know how I can do this? No eval function in VB.Net unfortunatley.
Dim strExpression As string = "itemsPurchased>5"
If eval(strExpression) Then
giveDiscount()
End If