Hi all,
CASE gGPOTenderLine."Item Category" OF
gGPOTenderLine."Item Category" :: "FP SWJB":
BEGIN
Item_Category :='MY';
END;
gGPOTenderLine."Item Category":: 'FP SWSIN':
BEGIN
Item_Category := 'SG';
END;
END;
I want do something like this. but its end up with error.
Help me.
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
your options should be in double quotes like
gGPOTenderLine."Item Category":: "FP SWSIN":
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
if double quotes there will be another error as below.
Actually
gGPOTenderLine."Item Category" is a column name
"FP SWSIN": is one of data under Item Category column
And i want pass the Data to Item_Category Text field (eg: MY or SG)
it seems one of the option value is not a=correct
FP SWSIN or FP SWJB.
open the table and go to field Item Category and copy the values from OptionString property
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I'm trying another method,
IF gGPOTenderLine."Item Category" ="FP SWSIN" THEN BEGIN
Item_Category := 'MY'
END
ELSE IF gGPOTenderLine."Item Category" ="FP SWJB" THEN BEGIN
Item_Category := 'SG';
END;
The result i get in Item_Category is all "MY" even though it is fall under
FP SWSIN.
Any solution for it?
at the beginning of the code.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav