Thanks Christy but I am getting an error message on qty:
a number, currency amount, Boolean, date\time is expected here.
GetQty
Local Numbervar nAt := InStr({ORDER_MED.QUANTITY},' ');If NumericText(Left({ORDER_MED.QUANTITY}, nAt-1))then qty := ToNumber(Left({ORDER_MED.QUANTITY}, nAt-1)else0
Sorry about that, take out the "qty :=" from the formula and it should work.
-Dell
Add comment