I'm starting from scratch to try and get a feel for this, but my first little effort fails to compile:
#AutoDefine "Off"
Declare Import, GetSysColor(index as int),int;
class myWindow : cwindow
{
// Overridden functions
declare OnClose(),ÂÃ, int;
declare OnCreate(), int;
// Variables
def run as int;
}
myWindow::OnClose(), int
{
Destroy();
run = 0;
Return 0;
}
myWindow::OnCreate(), int
{
run = 1;
CenterWindow();
Return True;
}
global sub main()
{
myWindow winMain;
winMain.Create(0,0,300,300,
AWS_CAPTION|AWS_VISIBLE|AWS_BORDER|AWS_SYSMENU|AWS_AUTODRAW|AWS_SIZE,
0,"The Hood",NULL);
winMain.SetWindowColor(GetSysColor(15));
do
{
wait();
}
until winMain.run = 0;
return;
}
The error isÂÃ, { } mismatch - }
but they look matched to meÂÃ, Ã‚Ã, :P
The actual keyword is
} until
The newline is causing the problem.
Paul.
Thanks, works fine now.
Peculiar syntax. I did notice that you were running together the brace and the "until", but I thought it was stylistic.
Just a bug that needs to be fixed ;)
It has.
Not yet. Still on my todo list.
Right. I put a space there and it worked, but new line still fails.