Re: [Gambas-user] Installing gambas3 on LinuxMint

2010-11-10 Thread Ricardo Díaz Martín
Did you read this: http://gambasdoc.org/help/install/ubuntu?view ? Because Mint is Ubuntu based distro I think if you install dependencies as in ubuntu every works fine. Regards, Ricardo Díaz -Mensaje original- De: Dr. Martin Senftleben Reply-to: mailing list for gambas users Para: gam

[Gambas-user] SelectAll feature

2010-11-10 Thread Demosthenes Koptsis
Good morning to all, While setting properties or any text that is in a textbox i wanted to press CTRL+A to select all the word and then press BACKSPACE to delete it and next to write a new one. But the CTRL+A is not working and i need to press many times the arrow keys to set the pointer to the e

[Gambas-user] Installing gambas3 on LinuxMint

2010-11-10 Thread Dr. Martin Senftleben
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I want to install gambas3 on my LinuxMint machine (64bit), but it doesn't work, the gambas3-gb-db-mysql package cannot be installed, because it requires libmysqlclient15off, which is not available. I have libmysqlclient16 on the system, and li

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread Matti
Well, settings it is a real file that you can use with other programs. It is built like [One chapter] first entry = "some text" another entry = "another text" [Another chapter] 1="something else" Of course, you can read that with another program if you know where the information is stored. And, a

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread NW
On Wed, 10 Nov 2010 19:21:47 +0100 Fabien Bodard wrote: > have you tryed to replace result by a global string variable ? > > textbox use utf8 charset > > and yes in your case ... use file.save > > > to resume your code > > Private $sResult as string > > PUBLIC SUB Button1_Click() > > $s

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread NW
If you want to store just a few informations from your project, there is also the very simple way via the gb.settings component. You have to choose this component in the project properties first. Then (this is Gambas3, look in the docs if you use Gambas2): Write: Settings["MyText/1"] = result.Tex

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread Matti
If you want to store just a few informations from your project, there is also the very simple way via the gb.settings component. You have to choose this component in the project properties first. Then (this is Gambas3, look in the docs if you use Gambas2): Write: Settings["MyText/1"] = result.Tex

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread Fabien Bodard
have you tryed to replace result by a global string variable ? textbox use utf8 charset and yes in your case ... use file.save to resume your code Private $sResult as string PUBLIC SUB Button1_Click() $sResult = File.Load("/home/neilwin/basic/trial.txt") END PUBLIC SUB Button3_Click()

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread NW
On Wed, 10 Nov 2010 17:14:24 +0100 Rolf-Werner Eilert wrote: > > > > Maybe it's better you give us the lines you are using in your program to > read and write the line. Then we should be able to see where the bug > sits :-) > > Did you try the File functions to do this? These should work with

Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
OK, makes sense. Though there should be warning in documentation (to "NOT" section and to "Differences From Visual Basic"). And maybe compiler warning? Jussi 2010/11/10 Benoît Minisini > > There is other similar bug or non-convinient feature. > > > > IF NOT 1 = 2 THEN > > PRINT "This is never

Re: [Gambas-user] string operator ==

2010-11-10 Thread Benoît Minisini
> There is other similar bug or non-convinient feature. > > IF NOT 1 = 2 THEN > PRINT "This is never printed" > ENDIF > > IF NOT 1 = 1 THEN > PRINT "This is also never printed" > ENDIF > > IF NOT (1 = 2) THEN > PRINT "This however works" > ENDIF > > Tested with Gambas 2.21 and with Gambas 3 rev

Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
There is other similar bug or non-convinient feature. IF NOT 1 = 2 THEN PRINT "This is never printed" ENDIF IF NOT 1 = 1 THEN PRINT "This is also never printed" ENDIF IF NOT (1 = 2) THEN PRINT "This however works" ENDIF Tested with Gambas 2.21 and with Gambas 3 rev 3281. @ Ubuntu 10.04 64bit Ju

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread Rolf-Werner Eilert
Am 10.11.2010 16:46, schrieb NW: > On Wed, 10 Nov 2010 14:38:57 + > NW wrote: > >> My first question on the list. >> >> I am trying to read in a text file with just one line, to make a slight >> change to that line and then to write the new line to the original file on >> disk. The new line

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread NW
On Wed, 10 Nov 2010 14:38:57 + NW wrote: > My first question on the list. > > I am trying to read in a text file with just one line, to make a slight > change to that line and then to write the new line to the original file on > disk. The new line should replace the original line in the fi

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread Fabien Bodard
you read the file, you write to a temp file , and then you copy the temp file to replace the readed file. 2010/11/10 NW : > My first question on the list. > > I am trying to read in a text file with just one line, to make a slight > change to that line and then to write the new line to the origin

Re: [Gambas-user] Writing to a file on disk

2010-11-10 Thread Stefano Palmeri
Il mercoledì 10 novembre 2010 15:38:57 NW ha scritto: > My first question on the list. > > I am trying to read in a text file with just one line, to make a slight > change to that line and then to write the new line to the original file on > disk. The new line should replace the original line in th

[Gambas-user] Writing to a file on disk

2010-11-10 Thread NW
My first question on the list. I am trying to read in a text file with just one line, to make a slight change to that line and then to write the new line to the original file on disk. The new line should replace the original line in the file. I can read in the file OK. I then use lineinput and

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Benoît Minisini
> you mean that > PRINT "A" < "a" 'true > > is similar like that > PRINT Asc("A") < Asc("a") 'true > Yes. -- Benoît Minisini -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson,

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Demosthenes Koptsis
On Wed, 2010-11-10 at 14:36 +0100, Benoît Minisini wrote: > > i also check these, i use gambas2-2.21 rev3289 updated today (10/11/2010 > > dd/mm/). > > > > PRINT "abc" < "abc" 'false > > PRINT "abc" < "aBc" 'false > > PRINT "ABC" < "abc" 'true > > > > are these correct? > > in http://gamba

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Benoît Minisini
> i also check these, i use gambas2-2.21 rev3289 updated today (10/11/2010 > dd/mm/). > > PRINT "abc" < "abc" 'false > PRINT "abc" < "aBc" 'false > PRINT "ABC" < "abc" 'true > > are these correct? > in http://gambasdoc.org/help/cat/stringop says > Returns if String1 is strictly lower than

Re: [Gambas-user] string operator ==

2010-11-10 Thread Caveat
Thanks for the (as usual) speedy reply Benoit. You are right that the == operator is not often used. I have just double-checked that the = operator does work as intended (phew!). My only fear is that I may have introduced an == somewhere, purely out of habit as a java programmer. I'll hold off

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Demosthenes Koptsis
i also check these, i use gambas2-2.21 rev3289 updated today (10/11/2010 dd/mm/). PRINT "abc" < "abc" 'false PRINT "abc" < "aBc" 'false PRINT "ABC" < "abc" 'true are these correct? in http://gambasdoc.org/help/cat/stringop says Returns if String1 is strictly lower than String2. PRINT "ABC

Re: [Gambas-user] string operator ==

2010-11-10 Thread Caveat
Am I missing something here? This would seem to me to be a fairly critical bug. I'm running v2.19 here as provided by my distro (Ubuntu 10.04 64-bit) and am also seeing the "turned around" logic giving what seems like wrong results for all equality string comparisons. Can we expect an update to

Re: [Gambas-user] string operator ==

2010-11-10 Thread Werner
On 10/11/10 20:38, Caveat wrote: > Thanks for the (as usual) speedy reply Benoit. > > You are right that the == operator is not often used. I have just > double-checked that the = operator does work as intended (phew!). My > only fear is that I may have introduced an == somewhere, purely out of >

Re: [Gambas-user] string operator ==

2010-11-10 Thread Benoît Minisini
> Am I missing something here? This would seem to me to be a fairly > critical bug. > > I'm running v2.19 here as provided by my distro (Ubuntu 10.04 64-bit) > and am also seeing the "turned around" logic giving what seems like > wrong results for all equality string comparisons. > > Can we expe

Re: [Gambas-user] string operator ==

2010-11-10 Thread Demosthenes Koptsis
ok, i upgrated to svn3289 and i get i think correct results PRINT "abc" == "ab" 'false PRINT "abc" == "abc" 'true PRINT "aBc" == "abc" 'true On Tue, 2010-11-09 at 23:19 +0100, Benoît Minisini wrote: > > Yes. I tried at amd64 and i386. I get the same results. > > > > i attach screenshot fro

Re: [Gambas-user] MOD arithetic operator

2010-11-10 Thread Fabien Bodard
we will not spend the year ... Gambas will have a new symbol "%", it will be the synonym operator "MOD" Like "\" is synonymous with "DIV", thank you Benoit. As the operator is a long writing was old-fashioned (more explicit), and a short writing more compact. The point on which I would emphasize mo

Re: [Gambas-user] Gambas 3 Grid/Table question

2010-11-10 Thread Rolf-Werner Eilert
Sorry, I was kinda tired this morning :-) There is a linewrap in the Gridview even with Gambas 2, but it is a default (at least I have not yet found a way to deactivate it) and it does not by itself adjust the line height appropriately. So the question would have to be: Is there a more specific

[Gambas-user] Gambas 3 Grid/Table question

2010-11-10 Thread Rolf-Werner Eilert
Just a question, as I do not have Gambas 3 running on my productive system yet. Currently, I'm considering a re-coding of one of my projects needing a Gridview/Tableview. In Gambas 2, there is no linewrap in a cell. Is it possible in Gambas 3? And if yes, is it possible to confine this behaviou