say pass is map and you have inserted some value in the map and then you want to locate a key value by this name
use :
string UOM;
UOM = pass.lookup(#CurrentUOM);
difference between lookup and lookupstr is that if no value found then lookup will throw error message where as lookupstr won't.
you can also use like that
pass.lookupStr(#QtyReceived);
use :
string UOM;
UOM = pass.lookup(#CurrentUOM);
difference between lookup and lookupstr is that if no value found then lookup will throw error message where as lookupstr won't.
you can also use like that
pass.lookupStr(#QtyReceived);
No comments:
Post a Comment