PxPlus User Forum
Main Board => Discussions => Programming => Topic started by: MikeinFL on March 30, 2020, 11:29:31 AM
-
I have a button -999 in a program. I have my _CTL-999 program in my app folder. Using ProvideX v5 it the button runs my -CTL-999 ok.
Same code using Pxplus 2017 v14.10.0000 and 2019 v16.20.0000I get an error 12 popup box.
As a test, I renamed *CONTROL in 2017 \lib\ and copied the old *CONTROL from ProvideX to it. I no longer get error 12 box with my button and _CTL-999 and they work.
I need my button -999 to work. The newer *CONTROL is pw protected. Is it ok just to use the old *CONTROL program in PxPlus? Is there a quick fix or should I submit as a ticket?
Thanks Mike
-
I just tried this on my machine here and didn't have any problem.
I saved my program $CTL-999 (not _CTK-999 as per your post which I assume is just a typo)
I then set $01$ (which is CTRL-A) to generate -999 and then pressed CTRL-A .
Make sure you file names, file name case, and prefix rules are correct.
Screen shot attached.
-
Was not a typo. I changed file name from _CTL-999 to $CTL-999 and it works ok now in PxPlus. Thanks!
-
It always was $CTL-xxx not _CTL-xxx; however you indicated that _ctl-999 worked which would tend to indicate you have a custom *CONTROL program since $CTL was the program name used ever since the being of ProvideX or PxPlus.
-
I'm not sure if we customized the Providex *control or not. It's not pw protected so maybe we did. This line in Providex has an * in front of CTL:
7020 LET CTL.PG$="*CTL"+STR(SV_CTL)
Doesn't the * in front allow that any first character would run?
-
As far back as ProvideX 5.14 this line was:
ProvideX (Ver:5.14/MS-WINDOWS) Serial Number:0514-001-0799999
(c) Copyright 1987-2003 Best Software Canada Ltd. (All rights reserved
Website: http://www.pvx.com
->load "*control
->password "password
->list 7020
7020 LET CTL.PG$="$CTL"+STR(SV_CTL)
->
Looks like someone modified the program on your system.