Hello
- Andre
- PureBasic Team

- Posts: 2148
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Take a look to the Ressources Site (http://www.reelmediaproductions.com/pb/) and you will find a new tutorial by Ricardo, as well much other useful stuff.... 
Welcome Andre on the English forum 
Cor de Visser
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Thanks but..
Well, thanks for the links but I was hoping you can tell me where to find a beginners one, that starts from the 'Hello World' program, working it's way up. If you know any please tell me. Thanks in advance
Re: Thanks but..
Hi Raion and Welcome Btw..Raion wrote:Well, thanks for the links but I was hoping you can tell me where to find a beginners one, that starts from the 'Hello World' program, working it's way up. If you know any please tell me. Thanks in advance
First of Are you using the Demo of PB cuz i don't know if it comes with the "Visual-Designer" or not ??
Second PB is'nt that hard to understand, you really don't need a hello world ex. to get started.
Is it your first language ever??
My adwise would be to look in your Example Directory and try to alter the examples there
and btw press F1 in the sourcecode to look up the online help for the commands in PB
The go to (http://www.reelmediaproductions.com/pb/) look at the many Code Snippets there
Try them out and alter them to your own pleasure.
go to http://freak.coolfreepages.com/ too and find some cool stuff there to and alter it.
Look at the Tricks 'n' Tips forum here.
And if there is something you whant to know about use the Search function above in this forum.
lets say you want to know something about using Directorys, write Directory and Clik Search, you will find alot of stuff, some you can use some not, but chances are that somebody had had the same prob. you have now, if not ask.
oh Btw Freak have made a tool "IETool" it's a cool way of testing out the codesnippets here on the forum, install it of couse an the just select the text/code you wanna try out, -form inside internetexplore chose run- without starting up the editor.
http://freak.coolfreepages.com/
Your Hello world program one made with Visual-Designer (comes with PB when you buy it)
the second does the same, just not with pre definde constants.
****** the first using the Visual Designer *****
;- <<< Copy form here -
;--------------------------
; PureBasic Visual Designer v3.63c Beta
; ---------------------------------------
;- Window Constants
;------
#Window_0 = 0
;- Gadget Constants
;
#TextGadget = 0
#ButtonGadget = 1
Procedure Open_Window_0()
If OpenWindow(#Window_0, 216, 0, 272, 173, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered , "It's a Window")
If CreateGadgetList(WindowID())
TextGadget(#TextGadget, 5, 35, 260, 25, "HelloooooOOO", #PB_Text_Center)
ButtonGadget(#ButtonGadget, 70, 75, 120, 25, "It's a button Click here")
EndIf
EndIf
EndProcedure
Open_Window_0()
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadgetID()
; if you pressed the button do -> case #ButtonGadget
Case #ButtonGadget
MessageRequester("It's a MessageRequester","WORLD!!", 0)
EndSelect
EndSelect
Until Event = #PB_EventCloseWindow
End
; Here ends the first example..
****** the Second using example dose the same without constants *****
;- <<< Second Copy form here -
If OpenWindow(0, 216, 0, 272, 173, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered , "It's Window")
If CreateGadgetList(WindowID())
TextGadget(0, 5, 35, 260, 25, "HelloooooOOO", #PB_Text_Center)
ButtonGadget(1, 70, 75, 120, 25, "It's a button Click here")
EndIf
EndIf
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadgetID()
; if you pressed the button do -> case 1
Case 1
MessageRequester("It's a MessageRequester","WORLD!!", 0)
EndSelect
EndSelect
Until Event = #PB_EventCloseWindow
End
; Here ends the second example..
Regards
Henrik
A new zip with 6 easy hello world examples are available in a few days in the resources site http://www.reelmediaproductions.com/pb/
ARGENTINA WORLD CHAMPION


