[Gambas-user] New version of gbs again :)
Fabien Bodard
gambas.fr at ...626...
Wed Oct 17 23:00:43 CEST 2007
This time it is better (with Benoit suggest),
The Keywords have a #in the beginning like C++ preprocessor words
so
#USE
#CLASS & #END CLASS
#INCLUDE
Now the executable is stored in a cache named "script-cache"
in the standard temporary file folder of gambas.
Now i don't make bad use of the instr function and prefers the LIKE operator
Now if you put a comment in a special line it while cause horrible things....
Enjoy it,
Fabien Bodard
One vote for the .g extention.
-------------- next part --------------
#!/usr/bin/env gbs2
#USE gb.qt
#INCLUDE inc.g
PUBLIC SUB Main()
CTest.Test
END
#CLASS CTest
STATIC Public sub Test()
'Dim hForm as New frmTest as "Form"
frmTest.Show
END
Public sub Form_Hide()
Message("You have closed me")
End
#END CLASS
-------------- next part --------------
#USE gb.qt
#CLASS frmTest
INHERITS Form
Private hForm as Form
Public Sub _New()
Dim txtlbl as TextLabel
txtlbl = new TextLabel(ME)
ME.Arrangement = arrange.fill
txtLbl.Text = "<b>Incredible!!! </b>"
END
#END CLASS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbs2-0.0.38.tar.gz
Type: application/x-tgz
Size: 7323 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20071017/797e32e7/attachment.bin>
More information about the User
mailing list