Hi
Are we not suppose to be able to use non text values as parameters in text strings when we are using strsubstno?
This works:
var
Item: record Item;
begin
Item.setrange("Price Includes VAT",false);
Message('Not Including VAT: %1. ',Item.count()));
end;
This does not work:
var
Item: record Item;
txt: Text;
begin
Item.setrange("Price Includes VAT",false);
txt := strsubstno('Not Including VAT: %1. ',Item.count());
Message(txt);
end;
It gives a runtime error. Of course easily remedied with format. But since it works in standard al i was wondering. And yes, I intend to add additional text before the message
Hi Are we not suppose to be able to use non text values as parameters in text strings when we are using strsubstno?
This works: var Item: record Item; begin Item.setrange("Price Includes VAT",false); Message('Not Including VAT: %1. ',Item.count())); end;
This does not work: var Item: record Item; txt: Text; begin Item.setrange("Price Includes VAT",false); txt := strsubstno('Not Including VAT: %1. ',Item.count()); Message(txt); end;
It gives a runtime error. Of course easily remedied with format. But since it works in standard al i was wondering. And yes, I intend to add additional text before the message