Hi,
I m trying to do this for a few days already, but it don't seem to work, sigh!![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
For example : I have a field named Qty, it can store +/- before it, e.g. +/-200, now I m trying to do a calculation with it, but first I have to trim off the "+/-". How do I go about it ??
The following is my code that won't worked :
WhilePrintingRecords;
StringVar Qty:=""; NumberVar Total:=0;
Qty:=Instr{ToText(PODetails.Qty}),"+/-"
;
If (Qty =1) then
Qty:=mid(ToText({PODetails.Qty}),1,3);
else
Qty:=ToNumber({PODetails.Qty});
Total:=ToNumber(Qty) - ToNumber({GoodsReceipt.QtyRecv});
please help ! Thank u !
best regards,
ngcn
I m trying to do this for a few days already, but it don't seem to work, sigh!
![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
For example : I have a field named Qty, it can store +/- before it, e.g. +/-200, now I m trying to do a calculation with it, but first I have to trim off the "+/-". How do I go about it ??
The following is my code that won't worked :
WhilePrintingRecords;
StringVar Qty:=""; NumberVar Total:=0;
Qty:=Instr{ToText(PODetails.Qty}),"+/-"
If (Qty =1) then
Qty:=mid(ToText({PODetails.Qty}),1,3);
else
Qty:=ToNumber({PODetails.Qty});
Total:=ToNumber(Qty) - ToNumber({GoodsReceipt.QtyRecv});
please help ! Thank u !
best regards,
ngcn