ENTER using default values

Started by steven.rajski, August 25, 2021, 03:42:42 PM

Previous topic - Next topic

steven.rajski

0030 ENTER IN0$,IZ$="",ICANCEL$="N",IUPDOPT$="ALL",ISTOREID$="1"

When I step through after line 0030, ICANCEL$, IUPDOPT$ and ISTOREID$ show null.

Jeff Wilder

Can you provide your CALL statement?

Defaults only apply if the CALL did not send in the argument.

For example:
CALL "prog.pxp",in0$,iz$

steven.rajski

CALL "programname", A$,B$,C$,D$,E$.F$

James Zukowski

The documentation specifies that the default values will only apply if the argument is missing, not if it's null. You've provided the arguments in the CALL statement, and their values are null. If you leave the variables off the CALL statement completely, then the defaults will apply.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services