Questions tagged [gambas]

Gambas is an object-oriented dialect of the BASIC programming language as well as the integrated development environment that accompanies it.

Designed to run on Linux and other Unix-like computer operating systems,[3] its name is a recursive acronym for Gambas Almost Means Basic. Gambas is also the word for prawns in the Portuguese and Spanish languages, from which the project's logos are derived.

Gambas is included in a number of Linux distributions' repositories, such as Debian's, Fedora's, Mandriva Linux's and Ubuntu's. There is a Windows version of Gambas which can run under the Cygwin environment, although this version is significantly less tested than its Linux counterparts and is command line only; coLinux and derivatives have also been used.

24 questions
3
votes
1 answer

How can I set the initial value of a Switch Button on a Gambas Qt application?

I'm developing an small application written in Gambas with a Qt interface, and as an initial learning test I wanted to write a really simple control panel to start/stop a few services like apache2, mysql, webmin etc. The application would look…
2
votes
1 answer

Pointers to objects. How can i manage true references to objects from functions or procedures and return it?

I need to maintain an array of objects references and pass each item to functions to manage it. I know I can do something like that: Dim arrObjs As MyObject[] Dim refObj As MyObject arrObjs.Add(New MyObject) 'First reference to the Object. …
jalonsor
  • 21
  • 1
2
votes
0 answers

glu.LookAt for tilted overhead camera with arbitrary vertical axis orientation

[Edited 09/23/12] Imagine FPS controls (strafe, turn) from a top-down perspective. Now imagine when the player turns the entire screen rotates so they're always facing the top of the monitor. Now imagine the "camera" projecting this is always 10…
2
votes
1 answer

Why does my BASIC project get an "unexpected <" error?

' Gambas class file ' Math Drill by William Teder. Feel free to use parts of the code, but please give me credit. ' Declare Variables ' Define number of times user has pressed the Give Up button PRIVATE givenuptimes AS Integer ' Define how many…
William
  • 570
  • 3
  • 17
1
vote
2 answers

Why does Gambas give me an error after I Dim a variable after a function call?

I'm playing around with gambas. This code gives me the error "unexpected dim in FMain.class:6" Public Sub Form_Open() Print "this won't work" Dim nickname As String = "gambas" Print "Your new name is " & nickname End This code doesn't,…
CMR
  • 11
  • 1
1
vote
1 answer

Web scraping with Gambas, is it possible?

Using Gambas, is it possible to download a webpage to a string, and then parse that string. I know I can parse the data in the string once I have the data, I'm struggling with getting the data from the webpage into a string.
1
vote
2 answers

Tablenames in sqlite Result

Hy I wrote an Application with Gambas uning SQLite When I try to port to another Linux Ditro, I have different keys for the fields in the resultset for the SQLite Result For example: sqlect * from table In on resultset I get…
1
vote
1 answer

Gambas, Split string by character and add into array

So I've got this code in Gambas 3 on Debian 8 to split a string into characters, when executed it says, that there Eingabe and buchstaben are both declared as strings, while buchstaben is an array. Public buchstaben As String[] Public Eingabe As…
alsternerd
  • 123
  • 7
1
vote
0 answers

Python 2.7 raw_input() EOF error in Gambas3- Raspberry Pi/Jessie OS

The code, print 'hello world' raw_input() "works" when ran in python idle 2.7 as well as in lxterminal ("python helloworld.py"). I then made an application thru Gambas3 using it as an interpreter for python programming. When simulating, everything…
1
vote
1 answer

Create Controls in Gambas with dynamic Eventname

In Gambas I can create Controls like this: btn = New Button(parent) As "MyButton" Now events listen on: MyButton_Click() But how can I create Elements with dynamic name, like: dim tmp as string tmp = "MyButton" btn = New Button(parent) As tmp The…
1
vote
2 answers

How to make a program skip the task bar (task list) in GNU/Linux?

I'm coding a demon like program from Gambas on Ubuntu 13.10. This is a GUI application which becomes visible when the user hits specific key. Therefore, I don't want this program to appear on the task bar. Is there a way I can bypass it? (Maybe…
Naveen
  • 623
  • 9
  • 20
1
vote
3 answers

Processing Linux SIGnals using Gambas

I would like to send a (as yet undetermined) SIGnal from a bash script to a Gambas program when a specific file has been changed. How can I get my Gambas program to process this SIGnal?
Bishop
0
votes
1 answer

How can I replace two exact words separated by a whitespace using PCRE?

I've been trying to code a simple translator using Gambas and I'm stuck on replacing two exact words separated by a whitespace using PCRE, which is a built-in component on Gambas. The languages are Turkish and Uzbek. The exact phrase I want to…
0
votes
0 answers

How to install Gambas programming IDE on mac mini?

How to install Gambas programming IDE on mac mini? https://gambas.sourceforge.net/en/main.html I went through the https://gambaswiki.org/wiki/install as well but I don't get what to do. Downloaded the package which is in a zip format. Unzipped. It…
prty grl
  • 15
  • 5
0
votes
2 answers

In Gambas3 write text inside a Image JPG o BMP

I use Gambas3 in Ubuntu 20.04. I need write some text in a image and create a new image. JPG o BMP
1
2