Comparison string error in Filter
Hi,
in filter (of a databand), I have the following expression (so simple) :
[transactions.account_name]>="100000"
but I get an error : Invalid expression term '[' ; expected -- doesn't seem that string comparisons are allowed ! I need that, it's urgent, what can I do ?
PS: I have a subscription since 2018
any help ?
thanks,
Domi.
This discussion has been closed.
Comments
What version of FastReport.Net are you using? Try to reproduce using actual version.
Hello!
To compare account numbers as strings (lexicographically) or as numbers in DataBand.Filter, use either of the following two options:
String comparison:
String.Compare([transactions.account_name], “100000”) >= 0Numeric comparison (if the string contains only digits):
ToInt32([transactions.account_name]) >= 100000