PDA

View Full Version : ThinBASIC 1.9.15.0



ErosOlmi
11-01-2015, 11:18
ThinBASIC 1.9.15.0

Download from: http://www.thinbasic.biz/projects/thinbasic/thinBasic_1.9.15.0.zip

This Version introduced 3 great new changes:



new Bundle process completely redesigned and re-engineered that will (hopefully) give a stop to all previous problems users had with Bundling ThinBASIC scripts
Version info, personalized executable icon, secure and fast compile process, no more ThinBASIC.Exe as a main process but directly your executable name.
ThinBASIC Bundled executable will never be expanded into executable directory but each of them will have its own temp directory allowing execution without interfere with each other
new Template file structure: now we use XML for great compatibility and future enhancements
new Template window, the window that appears when you ask New Script (or press F2).
It is still to be finished but it will give you the idea of what the new XML template file structure can allows


Plus:

some fixes and new functionalities
latest Oxygen module
latest TBGL module




See help for details.

ErosOlmi
11-01-2015, 18:07
More info about new Bundling options can be found in Help: http://www.thinbasic.com/public/products/thinBasic/help/html/index.html?thinbundle.htm

A little script example showing new #BUNDLE options.
Those options will be interpreted by Bundle procedure and used before creating executable.
Icon can also be changed at Bundling time directly into Bundle dialog.

All those options can now be easily inserted once and for all into your script and maintained directly while you code your source.



Uses "Console"

'#SCRIPTVERSION 1.5.6.7
'APP_SetScriptVersion (1, 5, 6, 7)

'---Optional name of the output executable
'---Full or relative path can be indicated.
'---If output path does not exists, it will be created
#BUNDLE Name ".\MyFirstApplication"

'---Name of the executable icon (any Windows supported formats)
'---Full or relative path can be indicated
#BUNDLE Icon "Application2.ico"


'---Supported executable Version info to include into the executable
#BUNDLE Version "Comments" , "Test script for testing thinBundle"
#BUNDLE Version "CompanyName" , "ThinBASIC"
#BUNDLE Version "FileDescription" , "Test script for testing thinBundle"
#BUNDLE Version "LegalCopyright" , "Copyright 2014 All right reserved"
#BUNDLE Version "LegalTrademarks" , "Legal Trademarks can be found on the web site"
#BUNDLE Version "ProductName" , "Application"

#BUNDLE Version "ProductVersion" , "1.3.0.1232"
#BUNDLE Version "FileVersion" , "1.3.0.12"

PrintL "I'm inside script executed from inside application"
PrintL "---Press any key to continue---"

WaitKey

Petr Schreiber
11-01-2015, 22:45
Those who want to stay connected, may consider joining the ThinBASIC club at Facebook:
https://www.facebook.com/groups/6473307475/

All the announcements are made there too, so you will never miss a release.

Whole 2015 is ahead, and with lot of stuff to look forward to!


Petr

porcelain_tree
18-02-2015, 00:53
The new Bundle process is awesome. And I love adding a program icon.

One issue I thought I'd mention (related to a thread I started some time back). I had been calling functions and assigning the value like this:

x = my_function

This worked fine in 1.8.9.0, both in IDE and as an EXE. In all of the subsequent betas, including 1.9.15.0, it ran fine from the IDE, but as an EXE it would crash without an error report. Eventually I noticed that the help file states that the proper syntax is:

call my_function to x

Aha! When I changed my code, my program runs perfectly fine in the IDE and as an EXE bundle. Nice.

The upshot is that I think it would be nice if the betas either (a) accepted my original syntax, like v1.8.9.0 did, or (b) detected and flagged the bad syntax.

ErosOlmi
18-02-2015, 08:04
Replied here: http://www.thinbasic.com/community/showthread.php?12141-thinBasic-Beta-1-9-7-0&p=91863#post91863