A Beginner's Guide to Gambas, Revised for Version 3

____Support for questions or comments about the book____

Summary table for common Form Elements

Because I often forget which control is best for some purpose, I created a table of the Gambas3/Qt4/GTK+ Form Elements and I have added it to the Downloads widget, as download #5.  Everyone should feel free to download this table, modify and translate it, and distribute it.

Best regards, minnesotajon

Filed under: Comments/Questions

Adjustment to code on page 54, for Gambas3 only

Thanks to “stanks”, who downloaded the book, started working with it, and encountered a problem related to a change in Gambas3.  On the web page “Array Declaration“, note that “In Gambas 3, embedded arrays cannot be used as local variables anymore. But they can be public!

Therefore, on page 54, when you are using Gambas3, the code should read:

Public narMatrix[3, 3, 3] As Integer

Public Sub Main()
Dim i As Integer
Dim ii As Integer
Dim iii As Integer
For i = 0 To 2
For ii = 0 To 2
For iii = 0 To 2
Print i, ii, iii & ” ==> “;  ‘note that “;” prevents a newline.
narMatrix[i, ii, iii] = i * 9 + ii * 3 + iii
Print narMatrix[i, ii, iii]
Next
Next
Next
End

If you don’t make this change, you will get the error message “Embedded arrays are forbidden here in MMain.module“.

Also, note that declaring the array “PUBLIC” means that you don’t use the keyword DIM — “PUBLIC” automatically does the dimensioning .

Filed under: Comments/Questions

Install Gambas3 using Synaptic or Ubuntu Software Center

If you are using one of the “Buntus” (Ubuntu, Xubuntu, Lubuntu, Edubuntu, etc.), you can add an “untrusted” PPA to your Software Sources, in order to download and install Gambas3 using Synaptic or the Ubuntu Software Center.  To add the PPA, click on this link: https://launchpad.net/~nemh/+archive/gambas3 — this will give you the PPA address.  Also, if you don’t know how to add the PPA to your Software Sources list, you can click on the link named “(read about installing)“.

After you have added the PPA, open Synaptic or the Ubuntu Software Center, and the Gambas3 packages can be installed automatically, and updated whenever updates are available.

To purchase the paperback version of the book, you can click on the book cover to the right. ===>

Filed under: Comments/Questions, , , , ,

Update — end of 2011

In total, there have been more than 1,700 visits to this blog, and more than 1,500 downloads of Beginner’s Guide to Gambas, Revised for Version 3.  We are delighted that programmers are showing so much interest — please let your programming friends know that this book is available as a download for free.

To purchase the paperback version of the book, you can click on the book cover to the right. ===>

Ciao!

Filed under: Comments/Questions

A Beginner’s Guide to Gambas, Revised for Version 3 — the world’s only English-language book that teaches the “Gambas BASIC for Linux” programming language!

Soon coming in paperback book form, from Infinity Publishing!

Welcome to the support blog for A Beginner’s Guide to Gambas, Revised for Version 3, by Dr. John Rittinghouse (Ph.D.) and Jon Nicholson.  The paper version of this revised edition of the book is scheduled to be published in July, 2011, along with e-reader versions for Kindle and Nook.  In the interest of completeness, and in support of the Open Content movement, we have placed the .pdf of A Beginner’s Guide to Gambas here, released under the OCL license.  The OCL license is explained in the book on Page 3.

There are a number of revisions and corrections that have been made in this revised edition, which will make the text easier to study.  Also, this revised edition covers the programming methods of both Gambas 2 and the upcoming Gambas 3.  Check back in late July for details of where to purchase your own copy of the book!

To comment or ask questions about the book, or seek help on something discussed in the book, click on the heading for this post and log in as “Guest”, or with one of the other login options.

Filed under: Comments/Questions, , , ,

_FREE DOWNLOADS BELOW!_

1. A Beginner's Guide to Gambas - Revised for Version 3 -- .PDF version, OCL license. The complete book!

2. Gambas2 project files from the book, in tar.gz format, chapters 4-15, highly commented code for maximum clarity. We believe that these programs are free of bugs. Read the Appendix B in the book to understand the change from Gambas 2 to Gambas 3.

3. Gambas2 example files, tar.gz, from the official program installation -- editable (not write-protected, not edited).

4. Gambas3 example files, tar.gz, from the official program installation -- editable (not write-protected, not edited). Note: #3 and #4 provide useful programs copied from the official Gambas installations, but you may find some bugs in the code!

5. A LibreOffice table summary of the Gambas/Qt4/GTK+ form elements, with short descriptions.

DOWNLOAD LINKS ARE BELOW, IN THE FLASH_WIDGET WINDOW!

A Beginner’s Guide to Gambas, Revised for Version 3

Click on the book cover to order the paperback book at Infinity Publishing!

Click on the shrimp to go to the main website for Gambas!

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 13 other followers

Follow

Get every new post delivered to your Inbox.