View Full Version : [Beta] thinBasic Beta 1.9.12.0
ErosOlmi
17-03-2014, 22:54
Here we are with another Beta version: ThinBASIC Beta 1.9.12.0
Download from: http://www.thinbasic.biz/projects/thinbasic/thinBasic_1.9.12.0.zip
In this Beta Version the direction is: ThinBASIC OOPification (like some users suggested here in forum)
Added: TYPEs extensions using Extends clause to Types. This allow Types derivation more or less like Class inheritance in real OOP Languages
Also added a new interesting way of defining variables extending the AS clause and adding the LIKE clause
All will be documented when Beta phase will last (hopefully very soon)
Have fun
Petr Schreiber
18-03-2014, 00:01
Few examples of the enhancements for those who don't have time to browse whole forum.
OOPification by example
While thinBasic modules already enable way to declare and use classes, thinBASIC itself makes its first brave steps on the road to enable object oriented design. Functions inside type? Inheritance? Read more here (http://www.thinbasic.com/community/showthread.php?12377-ThinBASIC-OOPification)
New possibilities of variable declaration
Just a brief example, for more info read here (http://www.thinbasic.com/community/showthread.php?12201-TypeOf-ideas&p=90854&viewfull=1#post90854).
Dim v As Long ' -- Classical way
Dim v2 As v ' -- Now it get's interesting, v2 will become of Long data type, just as v is
String sTypeInString = "DWord"
Dim v3 Like sTypeInString ' -- Dynamic declaration of type, based on string variable content -> v3 will be DWord
Expanded OS module power
OS_WinVersionText, OS_WinVersionTimeline with support for Windows 8, 8.1, Server 2012 now!
OS_ProcessGetFullPath to get full information from processID, like:
Uses "OS"
DWord pID = OS_ProcessGetId("thinBasic.exe")
String sPath = OS_ProcessGetFullPath(pID)
MsgBox 0, sPath
...and much more. See the What's new section in ThinBASIC help file, as usual :)
Petr
ReneMiner
04-04-2014, 16:18
Bundle does not create executeable files with this version. It creates some .exe but it's unable to run these.
I can confirm, on Windows XP not able to create executeable bundle
ReneMiner
14-04-2014, 08:23
Bad bundle-bug bump...
There should be paid some attention on by currently appearing understaffed developement division. :bb:
Petr Schreiber
14-04-2014, 22:30
I can confirm that :unguee:
Even with Isolation flag enabled there is a problem. I think the EXE file creation could be checked automagically when building new release - I will prepare the test to prevent this from happening.
Petr
Petr Schreiber
14-04-2014, 22:50
Hi guys,
in case you need to build the EXE, you can do it by script - tested right now and works.
Feel free to use this template as base for your experiments:
Uses "Console", "Bundle", "File"
Function TBMain()
String sRoot = APP_SourcePath
String sSourcePath = sRoot + "Source\" ' -- Place your source files there
String sBinPath = sRoot + "Bin\"
' -- Input validation
If Not DIR_Exists(sSourcePath) Then
DIR_MakeAll(sSourcePath)
PrintL "Please place your script to:"
PrintL sSourcePath
PrintL
PrintL "Press any key to quit..."
WaitKey
End If
DIR_MakeAll(sBinPath)
Print "Prepare the bundle..."
Bundle_Reset
Bundle_SetCreationFolder(sBinPath)
Bundle_SetBundleName("Test.exe") ' -- Feel free to change
PrintL "OK"
Print "Add files..."
Bundle_SetScriptName(sSourcePath + "Script.tBasic") ' -- You need to specify the MAIN script file this way
Bundle_AddFile(APP_Path + "Lib\thinBasic_File.dll") ' -- You need to specify the modules and other files this way
PrintL "OK"
Print "Make EXE..."
Bundle_Builder ' -- This invokes the build dialog
PrintL "OK"
PrintL
PrintL "Press any key to quit..."
WaitKey
End Function
Petr
Thanks Petr,
Also the Atan2 (math module) needs to be redefined - it outputs degrees i.o. radians like the other arc functions.
best
Rob