How can i convert a variable of type Text to an Integer?
In Example:
lv_Filter is a Text field,
lv_FilterCode is a Text field
Now i would like to add the lv_FilterCode as a filter for an Integer field... How do i do this?
FILTERGROUP(4);
lv_Filter := GETFILTERS;
lv_FilterCode := COPYSTR(lv_Filter, 5, STRLEN(lv_Filter));
FILTERGROUP(0);
lv_ReceptITem.RESET;
lv_ReceptItem.SETRANGE(lv_ReceptItem.ReceptID,lv_FilterCode);
I get error on the line in Bold : Type Conversion: ==> Integer := Text :?:
0
Comments
for details see C/SIDE Reference guide help
Technical Consultant, MS Dynamics NAV
How do you guys search in the help if you dont know the function you need??
I was looking in help for:
- Text to Integer
- Cast
- FORMAT
But non of these searches brought me to evaluate function