[23 Mar 2008] maybe a bug, or my misinprettion of the manual :D

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
Andrea

[23 Mar 2008] maybe a bug, or my misinprettion of the manual :D

Post by Andrea »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 23 Mar 2008 14:37:39 +0100

first of all happy easter to everyone :D

implementing my "personal" function of typewriter (with the 3.1 patch the default one is gone) i've encountered this problem. when i create a text object with only a space character, like : CreateTextObject(1, " ", #LEFT ) hollywood tells me i cannot create an empty object but the object isn't empty, there is the character 255 :)
User avatar
TheMartian
Posts: 109
Joined: Sun Feb 28, 2010 12:51 pm

[23 Mar 2008] Re: maybe a bug, or my misinprettion of the manual :D

Post by TheMartian »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 23 Mar 2008 18:31:47 -0000

Hi

More likely it is a space, which is ascii code 32. You can try this..

Code: Select all

@DISPLAY {color=#RED}

CreateTextObject(1,"\255") /* This returns character 255 */
DisplayTextObject(1,50,50)
WaitLeftMouse
End
This wil not produce any error though you cannot see anything on screen as chr(255) has no visible representation. However...

Code: Select all

CreateTextObject(1,"\65") will print an "A"
CreateTextObject(1,"\32") will trigger the error you mention.
As you say, since space is a regular character and the first one after all the classic control characters (numbered 0-31) my guess is the program has a check for a lower limit to character codes that filters one character code to much.

regards Jesper
Andrea

[23 Mar 2008] Re: Re: maybe a bug, or my misinprettion of the manual :D

Post by Andrea »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 23 Mar 2008 22:38:57 +0100

thx for the explanation
Locked