[Gambas-user] program return error value 1

T Lee Davidson t.lee.davidson at gmail.com
Tue Oct 24 22:15:01 CEST 2023


On 10/24/23 09:35, roberto.premoli at tiscali.it wrote:
> Hello all
> igot a new conputer with he follow:
> distro: devuan 5.0 "Dedalus" (the current stable)
> linux: Linux AM 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
> gambas: 3.18.0
> I create FROM ZERO (i choose QT) a demo program.
> How the programm works:
> there are one label and 2 buttons:
>   press button 1 => label1.text = "hello word"
>   press button 2 => label1.text = "happy birtday"
> no more, very easy demo program
> When I try to run it, it return "error 1" and it does not run.
> I tried also "compile" and "compile all" berore run, no success.
> Really I dont know what i did wrong: i change nothing in configuration, i change nothing in Fmain attributes, the only bold 
> attribute are height and width (both = 448).
> I only created label, 2 buttons an place code into button as follow:
> Public Sub Button1_Click()
>    Label1.Text = "hello world!"
> End
> 
> Public Sub Button2_Click()
>    Label1.Text = "happy birtday!"
> End
> 
> I attached here the demo program if someone want to investigate and find my error.
> Thanks,
>   Roberto

It works fine here with v3.18.4; no error.

Where are you seeing "error 1"? In the IDE console, or on the command line when executing the compiled project?

Perhaps your Gambas installation is corrupted.

By the way, when attaching archive files, please use "zip", "tar.gz" or the "gmail.txt" formats[1]. Gambas does not recognize 
the "7-zip" format. You can make a "tar.gz" archive easily right within Gambas: In the menu, Project > Make source archive.


-- 
Lee

[1] https://gambaswiki.org/wiki/howto/opengmailtxt



More information about the User mailing list