Hi all, I am working on a legacy program that was coded before I was even born !
The code must work on version 9 and above. We have a developper license and want to iliminate it to distribute on several servers. To do that, we first ilimanted the use of *.q files to use only *.p and *.i files.
Now, I have this code (see below) that work fine in *.p file but can't compile and is called like 1000 of times with different parameters with no output parameters and the fantastic use of SHARED variables. I am tring to find a good solution to hopefully just change the *.p files that is called everywhere, do you guys have any suggestions ?
Define Shared Var {4} As {10}.
**** other not shared variables ****
Find First {1} {11} NO-LOCK NO-ERROR.
IF AVAILABLE ({1}) THEN
DO:
recno = recid({1}).
END.
FORM {1}.{2} {1}.{3}
With Frame {5} Row {7} Column {8} Overlay {6} Down
Title "{9}" no-labels no-attr-space.
*** A lot more stuff like that ****
The code must work on version 9 and above. We have a developper license and want to iliminate it to distribute on several servers. To do that, we first ilimanted the use of *.q files to use only *.p and *.i files.
Now, I have this code (see below) that work fine in *.p file but can't compile and is called like 1000 of times with different parameters with no output parameters and the fantastic use of SHARED variables. I am tring to find a good solution to hopefully just change the *.p files that is called everywhere, do you guys have any suggestions ?
Define Shared Var {4} As {10}.
**** other not shared variables ****
Find First {1} {11} NO-LOCK NO-ERROR.
IF AVAILABLE ({1}) THEN
DO:
recno = recid({1}).
END.
FORM {1}.{2} {1}.{3}
With Frame {5} Row {7} Column {8} Overlay {6} Down
Title "{9}" no-labels no-attr-space.
*** A lot more stuff like that ****