PxPlus User Forum

Twitter Twitter Twitter

Author Topic: ENTER using default values  (Read 1183 times)

steven.rajski

  • Member
  • **
  • Posts: 12
    • View Profile
ENTER using default values
« on: August 25, 2021, 03:42:42 PM »
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

  • Silver Member
  • ***
  • Posts: 42
    • View Profile
Re: ENTER using default values
« Reply #1 on: August 25, 2021, 03:47:08 PM »
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

  • Member
  • **
  • Posts: 12
    • View Profile
Re: ENTER using default values
« Reply #2 on: August 25, 2021, 03:51:27 PM »
CALL "programname", A$,B$,C$,D$,E$.F$

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: ENTER using default values
« Reply #3 on: August 25, 2021, 03:57:19 PM »
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

steven.rajski

  • Member
  • **
  • Posts: 12
    • View Profile
Re: ENTER using default values
« Reply #4 on: August 25, 2021, 04:01:23 PM »
Thank you