Hello All,
I am using OE11.1.
I just stuck in one situation where I need to check the value stored in the logical field with a Character string value (which I am getting it from somewhere else).
I can re-create the above issue with the below code snippet:
Could anyone Please help in this regard.
Thanks...
I am using OE11.1.
I just stuck in one situation where I need to check the value stored in the logical field with a Character string value (which I am getting it from somewhere else).
I can re-create the above issue with the below code snippet:
Code:
def var lChk as log format "$/%" no-undo.
def var cVar as char no-undo.
cVar = "$". /*I am getting it from other source*/
assign lChk = True.
/*Now I want to check whether the lChk is containing $ or % by comparing with cVar and then need to process some logic*/
/*But if I am trying to use String(lChk) then it's resulting yes.. So how Can I get $ of lChk*/
if string(lChk) = cVar then
message "getting $" view-as alert-box.
else
message "Getting %" view-as alert-box.
/*In Result I am always getting message - Getting %.. How can I achieve to get the message - Getting $ */
Could anyone Please help in this regard.
Thanks...