{
  "id": 20324657,
  "title": "Two $concat pitfalls in Uniface ProcScript - arithmetic arguments and the argument count",
  "url": "https://urgent.news/2026/11/16/two-concat-pitfalls-in-uniface-procscript-arithmetic-arguments-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-16T20:27:36.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/f345345dfg/two-concat-pitfalls-in-uniface-procscript-arithmetic-arguments-and-the-argument-count-51md"
  },
  "original_language": "en",
  "account": "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.",
  "summary": "$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…",
  "key_points": [
    "$concat in Uniface ProcScript cannot perform arithmetic within argument list",
    "$concat limited to maximum of five arguments",
    "Script modified to build strings in steps to comply with $concat limitations"
  ],
  "editors_take": "These functional limitations force developers to adopt more complex, multi-step coding patterns to bypass rigid compiler constraints when building application labels within Uniface ProcScript.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}