PxPlus User Forum

Twitter Twitter Twitter

Author Topic: *CONTROL displays error 12 popup  (Read 380 times)

MikeinFL

  • Silver Member
  • ***
  • Posts: 26
    • View Profile
*CONTROL displays error 12 popup
« 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

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3368
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: *CONTROL displays error 12 popup
« Reply #1 on: March 30, 2020, 12:13:01 PM »
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.

MikeinFL

  • Silver Member
  • ***
  • Posts: 26
    • View Profile
Re: *CONTROL displays error 12 popup
« Reply #2 on: March 30, 2020, 01:28:20 PM »
Was not a typo.  I changed file name from _CTL-999 to $CTL-999 and it works ok now in PxPlus.  Thanks! 

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3368
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: *CONTROL displays error 12 popup
« Reply #3 on: March 30, 2020, 01:45:18 PM »
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.

MikeinFL

  • Silver Member
  • ***
  • Posts: 26
    • View Profile
Re: *CONTROL displays error 12 popup
« Reply #4 on: March 30, 2020, 04:05:55 PM »
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?

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3368
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: *CONTROL displays error 12 popup
« Reply #5 on: March 30, 2020, 05:14:44 PM »
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.