11-01-24 09:07 AM
May I have advice on what kind of functions are available in filter collection, so far just Len() is workable, others like Upper()/CDbl() /INSTR() are all return Undefined Function error.
e.g.
"Len([Field1])>2" do work.
"CDbl([Field2])>2" failed.
11-01-24 03:10 PM
Hi Eric the Filter action is essentially an implementation of the .Net DataTable.Select method
11-01-24 03:31 PM
@Eric Li
You can you find the valid functions in the following web page:
DataColumn.Expression Property (System.Data) | Microsoft Learn
For your CDbl you have to use something like:
"Convert([Field2],'System.Double')>2"
For Instr you have to use something like:
"[Field2] LIKE '*partialstring*'"
12-01-24 03:37 AM
Thanks Michael and John, you do help me.
Eric Li
AIG
Automation Delivery Team | China Service Center
9F, The Centerpoint (Shuion), 374-2 Beijing Road, Guangzhou, China 510030
Tel: (+86 20) 2882 5022
Eric-F.Li@aig.com | www.aig.com