my first post....Im new to coding in navision
How do you SETFILTER on a Field type Text if the the String contains special chars like '('
I am trying to Filter as follows
rItem.SETFILTER("Main Title",tDescription)
but i think it is failing because of invald chars in tDescription
I get an error message
The Filter 'ABC (DEF)' is invalid
0
Comments
Try this:
rItem.SETFILTER("Main Title", '%1', tDescription);
rItem.SETRANGE("Main Title", tDescription);
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
As Eric (Waldo) says setfilter solves this but also I would recommend using SETRANGE over SETFILTER as it is more efficent.
I only use SETFILTER for wildcards.
A big Fáilte to Nav and Mibuso
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
It's the Irish for Welcome - I know rule.... don't post in foreign language but I couldn't resist - Irish people on Mibuso are a rare breed
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html