Two $concat pitfalls in Uniface ProcScript - arithmetic arguments and the argument count
$concat is the workhorse for building labels in ProcScript. While adding a quick sales entry module to a Uniface 10 customer app I ran into two limits of it. Both show up as compile errors, both are easy to fix once you know them. Tested with Rocket Uniface 10.4.03 Community Edition (10.4.03.021) on Windows, SQLite 3.50.2 via the SLE driver, November 2026. 1. No arithmetic inside the argument…
Two problems were encountered when using $concat in Uniface ProcScript for building labels in an application. The first issue is the inability to perform arithmetic within the argument list of $concat. An example given is the conversion of discount from basis points (500 = 5%) into a percentage, which the compiler flagged as error 1000.
To resolve this, the discount value was stored in a numeric variable and used in the $concat call instead. The second problem identified was that $concat can only handle a maximum of five arguments. The order entry form of the application was using $concat with six arguments, which the compiler did not accept. To fix this, the string was built in steps, with the first step building the initial part of the string and the second step appending the remaining information.
The script was also used to check ProcScript files for any calls to $concat with more than five arguments, ensuring that the code adheres to this limitation.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.