Hi, Is there a way to qoute a percent-sign within STRSUBSNO? I would like to do following within a report: Str := STRSUBSTNO (´payable until %1 with %2 % discount´, DiscountDate, DiscountRate) Str should then be for e.g. payable until 20.01.2001 with 5 % discount However, as we know, the ‘%’-sign is reserved, so it won´t be printed out. Is there a workaround ? Gunter
Try this:
Str := STRSUBSTNO (´payable until %1 with %2 %3 discount´, DiscountDate, DiscountRate,'%')
Best regards, Erik P. Ernst, webmaster Navision Online User Group
quote:
Originally posted by Admin: Try this:
Str := STRSUBSTNO (´payable until %1 with %2 %3 discount´, DiscountDate, DiscountRate,'%')
This can’t help, if you Str passing to message or error func. You must use this trick ONLY AT THE END. I think that ‘%’ is the most mysteriuos char in the NF. This char can delete char in string, put trash, start new line.
Thanks Eric & Dalius I already used the trick of Eric before, but didn´t succeed, since I used the MESSAGE function for testing. Dalius is right - it is only working directly within the report. Thanks again Gunter