PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Programming / Re: LIST OF OBJECTS
« Last post by joe on May 28, 2020, 12:32:44 PM »
A little more info on this subject. It appears it may be windx issue. The machine that fails is running version 9.10

hopefully that will jog a memory from some of the old timers.  ;)
12
Language / Re: Associative array as a method arg
« Last post by Mike King on May 28, 2020, 10:36:57 AM »
You can do it if in the function definition you declare varname${All} as in the following object:

Code: [Select]
def class "a"
  function dump(v${all})
  enter var${all}
  dump
  return 1
end def

You can then use it as follows:

  begin
  abc$["first"]="one"
  abc$["second"]="two"
  a=new("a")
  a'Dump(abc${all})

13
Language / Associative array as a method arg
« Last post by ChrisKCAi on May 28, 2020, 09:20:50 AM »
PxPlus 15.10
Is there a way to pass an associative array as an argument to an object method?
14
Programming / LIST OF OBJECTS
« Last post by joe on May 27, 2020, 04:15:43 PM »
I have an old XP machine where I can enter DEF OBJECT X, "[WDX]*" and get a long list of objects I can connect to.
On a windows 7 machine the list is far shorter and I don't see the one I need. I have tried to re-register the OCX to no avail.
Any tips on register an OCX for use with WINDX.
15
Wish List / Re: Add Feature to Viewer.
« Last post by HendersonS on May 27, 2020, 02:46:46 PM »
thanks for reply, Thats could be a way,but a means to export natively from the original viewer just like crystal reports.
16
ODBC / Re: Red Hat 7 systemctl start of ODBC server
« Last post by Sam Nehama on May 27, 2020, 02:14:40 PM »
Mike,

We did set up an rc.local file that worked.  We have not rebooted until today.  Please see contents of rc.local below.  I simply did an init 6 to reboot.  The system displayed "A stop job is running for /etc/rc.d/rc.local  Compatibility  (9 min 9s  / no limit). Thoughts? I don't think the system ever rebooted and we had to hard boot it.

# cat rc.local
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.

touch /var/lock/subsys/local
exec /usr/pxpiosvr/pxpiosvr -f /usr/pxpiosvr/pxpiosvr.conf -p 20222 &
[root@paper-rbconverting-com rc.d]#

Thanks,
Sam
17
Language / Changing Record_Size on the fly ?
« Last post by JR on May 27, 2020, 12:22:55 PM »
Hi,
ADD INDEX is useful to change file structure on the fly.
Do you have similar command to change "Maximum Record size" on the fly ?
I mean : fin(filespec,"Record_Size") parameter.
Regards
18
Programming / Composite string questions
« Last post by Peter.Higgins on May 27, 2020, 12:19:48 PM »
Hi List,
Having difficulties getting composite strings within a test object to work.
File are opened object input but I have also tested open input and open. 
I am testing for some composite strings as local scope and others to be within the procedure scope.
The odd thing is that when composite read record lines from non object programs are used, the file iolist is populated with data, and the variable has the complete record, and lst(iol(rec$)) returns the IOLIST, even though the composite string returns nothing. 
testing in Ver 2017
Is using a composite string in an object possible?
19
Wish List / Re: Add Feature to Viewer.
« Last post by Mike King on May 27, 2020, 12:18:17 PM »
Which viewer are you using?  Sounds like you are not using the PDF based viewer:

OPEN (Channel) "*PDF*;View; ... options..."

-or-

%PDF_DEFAULT$="Viewer" ! Force viewer to use PDF

This will create a temporary PDF file and launch the workstations defined PDF viewer to display it providing all the functionality that your PDF viewer has.
20
Language / Re: 'TEXT' mnemonic.
« Last post by HendersonS on May 27, 2020, 08:20:02 AM »
thanks for reply,with the font resetting  works fine.

Code: [Select]
PRINT (CHAN)'FONT'("Courier New",-12,"B"),'TEXT'(600,190,"Customer: "),
Pages: 1 [2] 3 4 ... 10