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

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
Clyde
Posts: 351
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

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

Post 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
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
User avatar
Clyde
Posts: 351
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

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

Post 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
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
Locked