C10 COMMAND() : Am I taking crazy pills?

I feel like I’ve been taking crazy pills.
I call the exe with the following arguments:

`/ARG1=HELLO /ARG2=HOLA ARG3=ALOHA`

(two args with slashes, one without)
I added the following test message:

`
MESSAGE('|' & |
  '|COMMAND()             <9,9> "' & COMMAND() & '"'& |
  '|COMMAND(''1'')       <9,9> "' & COMMAND('1') & '"'& |
  '|COMMAND(''2'')       <9,9> "' & COMMAND('2') & '"'& |
  '|COMMAND(''3'')       <9,9> "' & COMMAND('3') & '"'& |
  '|COMMAND(''/ARG1'')  <9,9> "' & COMMAND('/ARG1') & '"'& |
  '|COMMAND(''ARG1'')   <9,9> "' & COMMAND('ARG1') & '"'& |
  '|COMMAND(''/ARG2'')   <9,9> "' & COMMAND('/ARG2') & '"'& |
  '|COMMAND(''ARG2'')   <9,9> "' & COMMAND('ARG2') & '"'& |
  '|COMMAND(''/ARG3'')  <9,9> "' & COMMAND('/ARG3') & '"'& |
  '|COMMAND(''ARG3'')   <9,9> "' & COMMAND('ARG3') & '"'& |
    '')
`

and I get this output:
image

Is my brain broken or has something fundamental changed since 6.3?
Am I being old fashioned with the slashes? Is that not cool anymore?

Any help appreciated
Thank you,
sam

I can’t test with C6, but AFAIK, the /PARAM is not used for assigning a value.

If you pass “/ARG1 /ARG2=HOLA ARG3=ALOHA” to your app, you’ll see that /ARG1 returns “ARG1”.

Thank you @jslarve I’ll have to remember that the new version behaves differently.

In C6.3.9056 you get the following result:

image

Different enough, but I feel like the problem might be me being inconsistent with my argument use in general. It looks like removing the slashes is the best thing to do in both versions.

Thanks for your help.
Sam

1 Like