RSTS: The guy is learning, sometimes it can look quite stupid when someone gives them the solution and they ask how to do this certain thing (when its just in front of their noses) but they are beginners, they began the programming course... For sure we all passed through that, and still pass through on some aspects (You never stop learning new things).
If they want to become good programmers, they shouldnt ask that much and be hard-minded, read the manual as much as possible (totally once, twice. and check it up every time he needs). And find the solution for their problems, at least try to, very hard, never giving up... but well, theres the other kind of guys, who gets purebasic, they open the manual, they dont care about reading it because they think they can do well with out "wasting" all that time reading that "unneded information" and they TRY to make something, of course, they fail, they always do. (they are beginners, no programming experience...) their first failure/error was to think that reading a manual was a waste of time!, and their second error was to steal my mashed potatoes...
Well don't get me wrong, im not talking about you bidanh00co here.. just a global comment / point of view. Oh and theres also another kind of guys, that... Okey, I'll shut up
.
bidanh00co: read up the manual, but not all of it, for now read about the functions that were used on the provided examples for your issue. you'll find out what each function does and how to use them correctly.
And just as a friendly comment: I suggest you not to aim very distant (no big projects for starting), aim closer. work on very simple stuff.. even on "debug programs" (thats how I call them, whenever im teaching someone to programm in PureBasic, I always suggest them to try out the various functions of PureBasic on debug programs, that is, use as output the debug window, and just that. no graphical interface, not even a console program. this is the fastest (time-wise) way of trying out something. It might sound stupid now, but trust me its useful to know about this, its good for a beginner. So, use the debugger, use the Debug function... and get to try the power of PB...!
(By the way, for a better programming experience: use jaPBe (its another IDE) although now the new PB's ide is nice, but, some of us still use jaPBe because of some of its comfy features, and either way, it already does the job for me so why changing right now? hehe -tsk tsk, auto-indent is useful sometimes! please add it to the new IDE! thats something I miss- Wait, perhaps.. if the plugins module was more expanded, we could programm inside features of the IDE, I mean, add features by ourselves if we want/need to like the auto-indent... Although as it is right now there shouldnt be trouble to do it, but... It would be nice if we could add the plugin actions to the popupmenu (right click) of the IDE, etc.. ).