Fred wrote:Thanos: Have you installed HotBasic trial and tried it ? It speaks for itself. BTW, the quote on web site than "HotBasic is the best", "21st compiler" and such are just plain wrong, or they didn't take a look to PureBasic. PB is way ahead, for any part of it.
Last night i installed the HotBasic trial.
Unfortunately i am disappointed from the first glance of it.
The ide does not support the autocomplete feature and it looks like as a simple text editor.
The 3rd party gui designer is elementary.
The support documents are almost horrible.
The trial version supports only console mode, so i can not test a gui application.
The console mode executable can not display unicode characters which is critical for me.
Is has not built in debugger.
I had read in its website and in some posts in the forums about its simplicity.
I post a code snippet from the HotBasic examples:
Code: Select all
$APPTYPE GUI
$TYPECHECK ON
$SYMBOLTABLE ON
defint i,fHnd,rHnd,fFlags,rFlags
defstr title$="HotBasic(tm) Dialogs Test 1.4"
RANDOMIZE TIMER
SHOWCONSOLE
Declare SUB ShowTitle (tstr as STRING)
SUB ShowTitle
Color 11: PRINT tstr: Color 7
END SUB
create f as form
width=380: height=100
center
icon="hotbasic.ico"
caption=title$
resizeable=false
maximizebox=false
create b0 as button
left=10: top=10: width=80
caption="Open File"
onclick=OpenFile
end create
create Open as opendialog
caption = "HotBasic OpenDialog"
DefExt = "sys"
InitialDir = "C:"
end create
end create
PRINT title$
f.showmodal
END
OpenFile:
Open.Flags = &H205800
IF Open.Execute THEN GOSUB ShowOpen
RETURN
ShowOpen:
ShowTitle "OPEN DIALOG"
PRINT "Open.FileName = "; Open.FileName
RETURN
I "translate" the code to a PureBasic's equivalent in a few seconds:
Code: Select all
EnableExplicit
Global xWin, xButt, iEvent, iEventGadget, sFileName.s
xWin = OpenWindow(#PB_Any, 100, 200, 380, 100, "HotBasic(tm) Dialogs Test 1.4", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget)
If xWin
xButt = ButtonGadget(#PB_Any, 10, 10, 80, 20, "Open File")
Repeat
iEvent = WaitWindowEvent(1)
Select iEvent
Case #PB_Event_Gadget
iEventGadget = EventGadget()
If iEventGadget = xButt
sFileName = OpenFileRequester("HotBasic OpenDialog", "C:\anyFile.sys", "*.sys", 0)
If sFileName
OpenConsole()
PrintN(sFileName)
Input()
CloseConsole()
EndIf
EndIf
EndSelect
Until iEvent = #PB_Event_CloseWindow
EndIf
End
Which code is easier to understand?
Which code cut the development time?
Fred, thank you again for this language!
It is the
most valuable product i have ever bought!
I want to clear something:
PureBasic is and will be my primary and favorite tool for serious software development. I do not plan to use another language. I am only searching for a tool, such VB6, which offers data bound controls and some wizards to design the user interface. BTW i do not like VB.Net.
Regards.
Thanos