hougaard / ToolBox-Issues

Support Repository for Erik's ToolBox
1 stars 0 forks source link

Type Mismatch #10

Closed bdgjope closed 1 year ago

bdgjope commented 1 year ago

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

hougaard commented 1 year ago

It's one of those annoying joker-based functions.... Fixed in the next version.

image