An Introduction to Gambas

If you think Visual Basic is almost useful, here's a way to almost get it on Linux.
______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

help me report design

dj yunnha's picture

how to create report in gambas use free tols ??

some questions (bugs in bugtracker?)

wig's picture

Interested in Gambas, which has very few publications, I read your article (picked it out of my stack of Linux Journals again).
Because this article relies very much on code, I have a couple of questions after reading and using the article:

- no mention of the "get_id" function (1)

- after making the frmAddBug form, there's no mention of the code to effectively save the bug. (2) In the code it seems to have a wrong name (btnAddBug_click instead of btnSaveBug_click)

- doesn't the status have to be 1 (new) by default? As design in the database (status_id) or in the Save code? A new record gets no status, and I see nowhere how it will be shown, all selections are done with the id of a status being there. Other selections? (status = NULL?)

- at the end of the article there is "data.runSQL(..)" but I can nowhere find this method. Does it have to be data.Exec()?

I must admit that I am entering it in Gambas 1.9 (not 1.0), but there seems to be more than version incompatiblity like system.user that is now system.user.name etc.

(1), (2): it is in the downloadable code thought
Without the code download it is difficult to follow the article in code.

ps: it would be interesting to update it to Gambas2 or at least 1.9.x if you would take it in your hands again to look at these ..

Thanks.

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix