PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: johnwoo on February 27, 2005, 04:52:18 PM

Title: Strange problem...
Post by: johnwoo on February 27, 2005, 04:52:18 PM
I got an error when compiling exe:
--------------------------------------------------------
The PowerBasic Compiler returned an error during compiling:

Error Number = 516
Error Description = DefType. Type id (?%&!#$), or AS... required: FUNCTIO
End Functio

FORM1 = FORM1.
CONTROL = COMMAND1
MESSAGE = BN_CLICKED
--------------------------------------------------------

Seems the problem is the code contains asian chars (dbcs),
and this error reported if the string length >= 6

FF_TextBox_SetText HWND_FORM1_TEXT1, "大家好"

Sorry about my very poor English!
Title: Strange problem...
Post by: TechSupport on February 27, 2005, 06:52:17 PM
I expect that the Asian characters characters are causing the code editor to either corrupt or parse incorrectly. I conceed that there may be no fix for this.
Title: Strange problem...
Post by: johnwoo on February 28, 2005, 05:33:40 AM
Ok, If I convert the text to chr$ style, the code parser will
successful to compile the project!

FF_TextBox_SetText HWND_FORM1_TEXT1, Chr$(164,106,174,97,166,110)

But, the parser will not bypass asian chars even if it is
remarked as description purposes.

Rem 大家好
FF_TextBox_SetText HWND_FORM1_TEXT1, Chr$(164,106,174,97,166,110)

will result the same error as previous mentioned.

Don't know why??
Title: Strange problem...
Post by: TechSupport on February 28, 2005, 08:30:36 AM
Instead of using the REM statement, try using the single apostrophe to indicate a comment.

Please let me know if that makes any difference.
Title: Strange problem...
Post by: johnwoo on February 28, 2005, 09:14:06 AM
Unfortunately, using the single apostrophe to
make comment got the same problem.