PxPlus User Forum
Main Board => Discussions => Programming => Topic started by: Cees Trip on September 11, 2018, 07:49:52 AM
-
Hi,
I'am getting a error 17 while trying to do a perform located on a windows machine.
I copied the program "VLB903C" to the directory C:\USR\PVX125\WINDX\
When I try to perform or load the programm I get an error 17.
I could use som help.
LET WDX$="[WDX]C:\USR\PVX125\WINDX\"
PERFORM WDX$+"VLB903C;GRID_VULLEN"
-
When I try to perform or load the programm I get an error 17.
I could use som help.
LET WDX$="[WDX]C:\USR\PVX125\WINDX\"
PERFORM WDX$+"VLB903C;GRID_VULLEN"
You can't PERFORM programs on the WindX workstation but you can CALL them.
Regards,
Eric Vanpaeschen
EDIAS Support
-
OK, Eric. To bad. I was looking for a way to start a nomads panel serverside an within this panel performing a program on a windows/windx client machine with all variables shared.
-
Although I don't think this is a good idea, there's a way to get all server variables in the WindX session. On the server, run this code:
0001 LET abc=123; LET abc$="abc" ! test variables
0010 OPEN (1)"[wdx]*memory*;xyzzy"
0020 DUMP (1)
0030 PRINT (1)"! DONE",'-B'
0040 CALL "[wdx]*windx.utl;get_num","ffn("+QUO+"*memory*;xyzzy"+QUO+")",chan
0050 IF chan<=0 THEN STOP
0060 CALL "[wdx]read",chan
The 'read' program on the WindX side looks like this:
0010 ENTER x ! PRINT PTH(x)
0030 LET L$=RCD(x,IND=0,ERR=DONE)
0040 WHILE 1; PRINT L$
0050 LET L$=RCD(x,ERR=*BREAK); WEND
0060 DONE: EXIT
You want to 'execute L$' at line 45. Be carefull with global variables as you can destroy WindX variables that you really shouldn't touch.
Eric Vanpaeschen
EDIAS Support