Page 1 of 1

[21 Sep 2008] Bug in GetCommandLine()!?

Posted: Sat Jun 13, 2020 5:31 pm
by Clyde
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 21 Sep 2008 00:21:03 +0200

Hi Andreas,

I think I found a bug in GetCommandLine() ... I want to pass a full assign Path like "Amikit:Programme/Hollywood/myapps" to my HW app, so I start it with hwcc -Amikit:Programme/Hollywood/myapps. Now, if I evaluate the table t that is containing all params and their values, I only receive the string "Amikit". So the string is cut off when the : appears. :-( It would be great if you have a solution for that or could fix that bug (if it is one :-)).

Thanks a lot in advance, Micha

[21 Sep 2008] Re: Bug in GetCommandLine()!?

Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 21 Sep 2008 09:53:20 +0200
Hi Andreas,

I think I found a bug in GetCommandLine() ... I want to pass a full assign Path like "Amikit:Programme/Hollywood/myapps" to my HW app, so I start it with hwcc -Amikit:Programme/Hollywood/myapps. Now, if I evaluate the table t that is containing all params and their values, I only receive the string "Amikit". So the string is cut off when the : appears. :-( It would be great if you have a solution for that or could fix that bug (if it is one :-)).
I think you're doing something wrong. Using a dash before the path passes your path as an option parameter. You want however to pass it as a value parameter. So try something like this:

Code: Select all

Hollywood -hwcc Amikit:Programme/Hollywood/myapps
Now the "hwcc" entry in your table should contain your path. That's the way it is supposed to work.

[21 Sep 2008] Re: Bug in GetCommandLine()!?

Posted: Sat Jun 13, 2020 5:31 pm
by Clyde
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 21 Sep 2008 22:05:20 +0200

Ah ... Man, how blind am I? :-( You were absolutely correct. Thanks a lot, now it works like I want it to work. :-)

Cheers