PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Strange behaviour reading ctl value  (Read 1900 times)

Sebastiaan Fisscher

  • Silver Member
  • ***
  • Posts: 23
    • View Profile
    • Astecom Business Software
Strange behaviour reading ctl value
« on: August 03, 2018, 04:43:46 AM »
If you are in a WindX session on Unix and you run the following program:
0005 PRINT 'CS'
0006 BEGIN
0010 MULTI_LINE 131,@(13,2.3,6,1),FNT="Arial,.75,B"
0020 BUTTON 1,@(13,22,10,2)="F1"
0030 SET_FOCUS 131
0040 INPUT *
0050 PRINT CTL
0060 GOTO 0040

When you press the F1 key you get the following result:
- 131
- 1

When you run this program in a non-Unix environment it only gives back the ctl 1, which is what it should do.
Could this be looked into please?
« Last Edit: August 03, 2018, 05:38:49 AM by Sebastiaan Fisscher »

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Strange behaviour reading ctl value
« Reply #1 on: August 03, 2018, 09:29:39 AM »
It sounds like the Multi line input has Signal on exit set, however I just ran this on my system here using PxPlus 2018 to a Suse Linux server and it only returned '1'.

What versions (host and WindX) are you running?

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Patrick Willems

  • New Member
  • *
  • Posts: 3
    • View Profile
Re: Strange behaviour reading ctl value
« Reply #2 on: August 08, 2018, 03:38:46 AM »
I did noticed this when upgrading from V9.10 to V15

In V9.10 i get one ctl value = 1
In V15 i get 2 ctl value , first 131 , second 1

Suse Linux , Windx
Patrick Willems
Cotrabel Software Development

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Strange behaviour reading ctl value
« Reply #3 on: August 08, 2018, 05:20:41 PM »
Please update your WindX/PxPlus from our web site to get the 0002 build. 
There was an extra event caused by some Window OS changes in the 0001 build that didn't work quite right in all cases.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Sebastiaan Fisscher

  • Silver Member
  • ***
  • Posts: 23
    • View Profile
    • Astecom Business Software
Re: Strange behaviour reading ctl value
« Reply #4 on: August 09, 2018, 04:20:16 AM »
Thank you for the reply! I will get it updated.