Page 1 of 1

PostPosted: Sun Jun 15, 2003 4:41 pm
by plot0139
I have just installed PocketC on a Tungsten C Palm and tried to work with some simple programs. Despite all my efforts to copy the program into the editor, compiler would find the error (usually ; or ) expected). I know you think it is not there, but it is!. For example, in this code (copied from memo pad on desktop):


string userName;

userName = gets("your name? (gets)");
alert("Hi, " + userName + ''!");

userName = getsd("your name? (getsd)", "Wally");
alert("Hi, " + userName + ''!");
userName = getsi(10, 20, 80, "name? (getsi)");
alert("Hi, " + userName + ''!");
the error reads:
Line: 9
) expected at the end of function call, possibly too many arguments
Anyway, it looks like I need some help. Any suggestions?

PostPosted: Sun Jun 15, 2003 7:47 pm
by dcalp
You have a double single quote on the line

alert("Hi, " + userName + <font color="red">''</font id="red">!");

(marked in red), instead a double quote.

It seems the same in all alert() functions



Pocket VisualForms
Visual design for PocketC

PostPosted: Sun Jun 15, 2003 11:50 pm
by plot0139
Thanks Diego!
It works. Now I can see the difference between the quotes on the desktop but they sure looked the same on the handheld.
Thanks again,