Original Message:
Sent: 04-05-2023 01:31
From: Michael Rösch
Subject: Global constants in globale procedures
Hi Ingo,
we're also just migrating to 10.4 (from 10.3). And we have a lot of global constants in the DEFPARAM.
I cannot confirm this behaviour in our environment. These global constants (from DEFPARAM) work with global procedures (without the need to redefine them).
Unfortunately I have no solution for you, but it seems not to be a global issue.
Best regards
------------------------------
Michael Rösch
Abrechnungszentrum Emmendingen
Original Message:
Sent: 04-04-2023 07:03
From: Ingo Stiller
Subject: Global constants in globale procedures
Hi Osman
The global constants are in the DEFPARAM(s). And it does work wunderfull for normal components but globale procedures :-)
------------------------------
Ingo Stiller
Aareon Deutschland GmbH
Original Message:
Sent: 04-04-2023 05:19
From: Osman Shariff
Subject: Global constants in globale procedures
A shot in the dark, but I think the below suggests that defparam needs to be included in the project
Global constants must be defined in an IncludeScript called DEFPARAM
.
You must have created a project to contain your application definitions.
https://www3.rocketsoftware.com/rocketd3/support/documentation/Uniface/10/uniface/proc/procLanguage/Precompiler/definingGlobalConstants.htm?tocpath=Scripting%20Application%20Behavior%7CProcScript%20Syntax%7COperands%7CConstants%7C_____1
------------------------------
Osman Shariff
Original Message:
Sent: 04-04-2023 04:57
From: Ingo Stiller
Subject: Global constants in globale procedures
insert a line (into the global procedure)
#define global_constant=xyz
solves the problem
However, it does not make sense to define the constants again in each global object.
------------------------------
Ingo Stiller
Aareon Deutschland GmbH
Original Message:
Sent: 04-04-2023 04:52
From: Ingo Stiller
Subject: Global constants in globale procedures
Hi
We do have in UF 9.7 a lot of global constants (per library) defined.
Some of this constants will be used in global procedures.
Now I'm migrating via UF 10.3 to UF 10.4 and oops: The constants in the global procedures will not be resolved.
In the listing the is no clue about 'defparam'. When I insert as first line in a globale procedure:
#include DEFPARAM
nothing changed.
Missspelling DEFPARAM like DEFXYZ gives me warning that there is no include script DEFXYZ what is correct.
So UnifAce recognize a globale include script but don't use it !?!?!
The question is now:
How do you get UnifAce to use global constants in global objects?
TIA
Ingo
------------------------------
Ingo Stiller
Aareon Deutschland GmbH
------------------------------