Strange problem...

Started by johnwoo, February 27, 2005, 04:52:18 PM

Previous topic - Next topic

johnwoo

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!

TechSupport

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.

johnwoo

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??

TechSupport

Instead of using the REM statement, try using the single apostrophe to indicate a comment.

Please let me know if that makes any difference.

johnwoo

Unfortunately, using the single apostrophe to
make comment got the same problem.