[Gambas-user] [Gambas Bug Tracker] Bug #1121: Tabstrip color.
http://gambaswiki.org/bugtracker/edit?object=BUG.1121=L21haW4- Sean CON added an attachment: Screenshot_20170617_034736.png -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1120: segmentation fault
http://gambaswiki.org/bugtracker/edit?object=BUG.1120=L21haW4- Sean CON reported a new bug. Summary --- segmentation fault Type : Bug Priority : High Gambas version : 3.9 Product : Unknown Description --- Gambas in Manjaro Linux (see uname below) doesn't start from command line. Error message : Segmentation Fault (core dumped) uname -a output : Linux glassplanet 4.9.31-1-MANJARO #1 SMP PREEMPT Wed Jun 7 19:39:15 UTC 2017 x86_64 GNU/Linux whereis gambas3 output: gambas3: /usr/bin/gambas3 /usr/bin/gambas3.gambas /usr/lib/gambas3 /usr/share/gambas3 package information: [monsoon@glassplanet ~]$ sudo pacman -Qi gambas3-devel Name : gambas3-devel Version : 3.9.2-4 Beschreibung : Development environment Architektur : x86_64 URL : http://gambas.sourceforge.net/ Lizenzen : GPL2 Gruppen : gambas3 Stellt bereit: Nichts Hängt ab von : gambas3-runtime Optionale Abhängigkeiten : Nichts Benötigt von : gambas3-ide gambas3-script Optional für : Nichts In Konflikt mit : Nichts Ersetzt : Nichts Installationsgröße : 312,00 KiB Packer : Evangelos FoutrasErstellt am : Do 27 Apr 2017 06:16:51 CEST Installiert am : Do 15 Jun 2017 11:38:15 CEST Installationsgrund : Ausdrücklich installiert Installations-Skript : Nein Verifiziert durch: Signatur All files in these directories have +x permission I need to use sudo to start it. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1121: Tabstrip color.
http://gambaswiki.org/bugtracker/edit?object=BUG.1121=L21haW4- Sean CON reported a new bug. Summary --- Tabstrip color. Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description --- The tabstrip label foreground color has no effect. Steps to reproduce in Gambas-devel 3.9.2 : 1. Create a tabstrip control 2. Change the background color to black (see image) [optional] 3. Change the foreground color to white (see image) Problem Description: 1. The label of the strip is still black. It has no effect (also not when he program is executed) System information -- uname -a : Linux glassplanet 4.9.31-1-MANJARO #1 SMP PREEMPT Wed Jun 7 19:39:15 UTC 2017 x86_64 GNU/Linux -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite3 component can't seem to handle very large numbers
Le 17/06/2017 à 01:31, Tobias Boege a écrit : On Sat, 17 Jun 2017, Herman Borsje wrote: When I retrieve a result from a sqlite3 database which holds very large numbers in some fields, I get weird results. Up to 10 digits works okay, but larger numbers are incorrect. Any ideas as to what's going wrong? I am using Gambas 3.9.2 on Linux Mint 18.1 Tabledef: id INTEGER, name TEXT; Database records: id name 1234567890test1 12345678901 test2 123456789010test3 Public Sub Button1_Click() Dim rs As Result Dim con As New Connection con.Name = "test.db" con.Type = "sqlite3" con.Open rs = con.Exec("select * from test") For Each rs Debug Cstr(rs!id) & ": " & rs!name Next con.Close End Debug results: FMain.Button1_Click.14: 1234567890: test1 FMain.Button1_Click.14: 0: test2 FMain.Button1_Click.14: 6714656: test3 The SQLite documentation tells me that SQLite3's INTEGER datatype can consist of 1, 2, 3, 4, 6 or 8 bytes, depending on the magnitude of the value to be stored, whereas Gambas' normal Integer type is always four bytes, or 32 bits. What you call "larger numbers" are most likely just numbers that cross the boundaries of 32 bits. At least the two numbers you listed above, where the retrieval appears to fail, have 34 and 37 bits respectively. In the attached script, I tried CLong() (Long is always 8 bytes in Gambas), but to no avail. It seems that the faulty conversion is already done in the database driver and has to be fixed there. From glancing at the source code, the mapping between SQLite and Gambas datatypes is: Gambas -> SQLite3 SQLite3->Gambas +--+-- Integer |INT4 INTEGER, | \ Long | BIGINTINT, INT4, INT2, | | SMALLINT,| |- Integer MEDIUMINT| / BIGINT, INT8 | Long I would suggest to map INTEGER to Long instead of Integer, but Benoit, being the driver author, has to confirm. Regards, Tobi SQLite fields internally do not have datatypes. You can store any value in any field. So I chose INTEGER to represent 4 bytes integer, and BIGINT to represent 8 bytes integer, like in MySQL. It's just a convention, but a convention was needed. Regards, -- Benoît Minisini -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite3 component can't seem to handle very large numbers
On Sat, 17 Jun 2017, Herman Borsje wrote: > When I retrieve a result from a sqlite3 database which holds very large > numbers in some fields, I get weird results. Up to 10 digits works okay, but > larger numbers are incorrect. Any ideas as to what's going wrong? > > I am using Gambas 3.9.2 on Linux Mint 18.1 > > Tabledef: id INTEGER, name TEXT; > > Database records: > > id name > > 1234567890test1 > > 12345678901 test2 > > 123456789010test3 > > > Public Sub Button1_Click() > > Dim rs As Result > Dim con As New Connection > con.Name = "test.db" > con.Type = "sqlite3" > con.Open > > rs = con.Exec("select * from test") > > For Each rs > Debug Cstr(rs!id) & ": " & rs!name > Next > > con.Close > > End > > Debug results: > > FMain.Button1_Click.14: 1234567890: test1 > FMain.Button1_Click.14: 0: test2 > FMain.Button1_Click.14: 6714656: test3 > The SQLite documentation tells me that SQLite3's INTEGER datatype can consist of 1, 2, 3, 4, 6 or 8 bytes, depending on the magnitude of the value to be stored, whereas Gambas' normal Integer type is always four bytes, or 32 bits. What you call "larger numbers" are most likely just numbers that cross the boundaries of 32 bits. At least the two numbers you listed above, where the retrieval appears to fail, have 34 and 37 bits respectively. In the attached script, I tried CLong() (Long is always 8 bytes in Gambas), but to no avail. It seems that the faulty conversion is already done in the database driver and has to be fixed there. From glancing at the source code, the mapping between SQLite and Gambas datatypes is: Gambas -> SQLite3 SQLite3->Gambas +--+-- Integer |INT4 INTEGER, | \ Long | BIGINTINT, INT4, INT2, | | SMALLINT,| |- Integer MEDIUMINT| / BIGINT, INT8 | Long I would suggest to map INTEGER to Long instead of Integer, but Benoit, being the driver author, has to confirm. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk #!/usr/bin/gbs3 Use "gb.db" Public Sub Main() Dim h As New Connection Dim t As Table, r As Result h.Type = "sqlite3" h.Host = Null h.Name = Null h.Open() h.Exec("CREATE TABLE test(int INTEGER PRIMARY KEY)") r = h.Create("test") r!int = ' 5 byte integer r.Update() r = h.Find("test") ' Notice that the "98" hex digits are lost although SQLite3's ' INTEGER type can store 8 bytes. Print Hex$(r!int), Hex$(CStr(r!int)), Hex$(CLong(r!int)) End -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] sqlite3 component can't seem to handle very large numbers
When I retrieve a result from a sqlite3 database which holds very large numbers in some fields, I get weird results. Up to 10 digits works okay, but larger numbers are incorrect. Any ideas as to what's going wrong? I am using Gambas 3.9.2 on Linux Mint 18.1 Tabledef: id INTEGER, name TEXT; Database records: id name 1234567890test1 12345678901 test2 123456789010test3 Public Sub Button1_Click() Dim rs As Result Dim con As New Connection con.Name = "test.db" con.Type = "sqlite3" con.Open rs = con.Exec("select * from test") For Each rs Debug Cstr(rs!id) & ": " & rs!name Next con.Close End Debug results: FMain.Button1_Click.14: 1234567890: test1 FMain.Button1_Click.14: 0: test2 FMain.Button1_Click.14: 6714656: test3 -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] DesktopWindow.Name; Unexpected result
On Fri, 16 Jun 2017 16:47:06 +0200 Gianluigiwrote: > Thank you very much. > So if I understand well, there is no difference between the two properties. > > Regards > Gianluigi > > 2017-06-16 15:19 GMT+02:00 adamn...@gmail.com : > > > On Fri, 16 Jun 2017 15:07:20 +0200 > > Gianluigi wrote: > > > > > Please take a look at the attached test. > > > From DesktopWindow.Name I would expect the name of the Form Name > > property, > > > and instead I get the Title. > > > Do you think it should be reported as a bug? > > > > > > Regards > > > Gianluigi > > > > No, that is 100% correct under the Portland definition (and exactly what > > the Gambas help says.) > > > > b > > -- > > B Bruen > > Consider opening four spreadsheets at the same time in libreOffice - each of the window titles includes the name of the file as well as the application name. If it were just the application name how could you tell which window had which file. b -- B Bruen -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite gambas table info?
umm interesting, great tobias, thanks... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 16:17 GMT-04:00 Tobias Boege: > On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > > its there some code to get BEFORE send the query the fields of the table? > > > > i mean, in the following code example i already know the column name, > but i > > need firts detect column name to send amount of filters > > > > sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as > > "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* > > $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* > > > > > > in this case, the column "id" was previously knowed! but in my case i > need > > to detect all the column names firts before send the filters/parameters > > criteria > > > > please any help? > > > > Look again at the properties of the Connection object. To get information > about a table, the "Tables" property is a good start. If your Connection > is called h you can list all tables, their fields and datatypes like this: > > ' h is an open connection to a database > Dim t As Table, f As Field > > For Each t In h.Tables > Print t.Name > For Each f In t.Fields > Print " "; f.Name;; f.Type > Next > Next > > Use > > t = h.Tables[""] > > in place of the outer loop if you only care about a specific table. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite gambas table info?
On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as > "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* > $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* > > > in this case, the column "id" was previously knowed! but in my case i need > to detect all the column names firts before send the filters/parameters > criteria > > please any help? > Look again at the properties of the Connection object. To get information about a table, the "Tables" property is a good start. If your Connection is called h you can list all tables, their fields and datatypes like this: ' h is an open connection to a database Dim t As Table, f As Field For Each t In h.Tables Print t.Name For Each f In t.Fields Print " "; f.Name;; f.Type Next Next Use t = h.Tables[""] in place of the outer loop if you only care about a specific table. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite gambas table info?
yeah--- that i was done.. as you confirmed.. its the only solution due mysql has the DESCRIBE command, but sqlite need to search in master table... thanks Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 15:47 GMT-04:00: > Maybe a previous query like: > > SELECT TOP 1 * FROM > > would help with the FOR EACH loop. Don't really know your case though. > > Regards, > zxMarce > > > On Jun 16, 2017, 16:40, at 16:40, PICCORO McKAY Lenz < > mckaygerh...@gmail.com> wrote: > >2017-06-16 15:04 GMT-04:00 ML : > > > >> Does this help? > >> > >> Dim fld as Field > >> For Each fld In Result.Fields > >> ... do whatever with field names > >> Next > >> > >err zxMarce.. that need a previous query... and i need the filed BEFORE > >made the query jajajaj > > > >quite strange but that its! > > > > > >> > >> zxMarce > >> > >> > >> -- > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> ___ > >> Gambas-user mailing list > >> Gambas-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >--- > --- > >Check out the vibrant tech community on one of the world's most > >engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >___ > >Gambas-user mailing list > >Gambas-user@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite gambas table info?
2017-06-16 15:04 GMT-04:00 ML: > Does this help? > > Dim fld as Field > For Each fld In Result.Fields > ... do whatever with field names > Next > err zxMarce.. that need a previous query... and i need the filed BEFORE made the query jajajaj quite strange but that its! > > zxMarce > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite gambas table info?
On 16/06/17 14:48, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as > "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* > $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* > > > in this case, the column "id" was previously knowed! but in my case i need > to detect all the column names firts before send the filters/parameters > criteria > > please any help? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com Piccoro, Does this help? Dim fld as Field For Each fld In Result.Fields ... do whatever with field names Next zxMarce -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] sqlite gambas table info?
its there some code to get BEFORE send the query the fields of the table? i mean, in the following code example i already know the column name, but i need firts detect column name to send amount of filters sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* in this case, the column "id" was previously knowed! but in my case i need to detect all the column names firts before send the filters/parameters criteria please any help? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] static ? in variables
2017-06-16 11:26 GMT-04:00 Tobias Boege: > A static variable is stored in the *class* and shared by all objects. > If you modify a static variable from one object, it will change for all > objects. This is orthogonal to visibility. You can combine Static with > Public or Private. Neither implies the other. > thanks i must confirm that due some concepts in gambas are very different respect java or php... and confused too much ... > > You should be familiar with this concept if you know Java and PHP. > It's about the same there, although I don't think Gambas has static > local variables, which is another place where the word "static" is > used in those languages. > > In case you are confused because "Static" appears in two places (the > CREATE STATIC flag for classes and the STATIC keyword for variable/ > property/method declaration), those two things aren't necessarily > related. For example, CREATE PRIVATE has no relation to private variable > declaration (where you also use PRIVATE) and no relation to the CREATE > flag you specify with the OPEN instruction for files. It's just that > those two words "CREATE" and "PRIVATE" already exist in Gambas and they > together kind of convey the meaning of "CREATE PRIVATE", namely that > you can't create objects of the class using NEW. > thanks for clarify.. that information unless you think its very necesary.. due some differences.. i cited the wiki introduction that said Gambas its NO SAME as visual basic.. but its too similar. but not equal.. now i have a correct information. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] static ? in variables
On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > tested was a cache doc problem maybe.. thanks ... > > i now understand clarelly about class using static and private.. but for > variables: > wiki was: > "If the static keyword is specified, the same variable will be shared with > every object of this class." > > well seems "Public var" and "Static public var" are equal and there's no > difference? so where are the logic with public static? > > please iluminate me... > "Public" or "Private" control the visibility of a symbol, whereas "Static" (or leaving out "Static") controls the storage type of the variable. A static variable is stored in the *class* and shared by all objects. If you modify a static variable from one object, it will change for all objects. This is orthogonal to visibility. You can combine Static with Public or Private. Neither implies the other. You should be familiar with this concept if you know Java and PHP. It's about the same there, although I don't think Gambas has static local variables, which is another place where the word "static" is used in those languages. In case you are confused because "Static" appears in two places (the CREATE STATIC flag for classes and the STATIC keyword for variable/ property/method declaration), those two things aren't necessarily related. For example, CREATE PRIVATE has no relation to private variable declaration (where you also use PRIVATE) and no relation to the CREATE flag you specify with the OPEN instruction for files. It's just that those two words "CREATE" and "PRIVATE" already exist in Gambas and they together kind of convey the meaning of "CREATE PRIVATE", namely that you can't create objects of the class using NEW. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] DesktopWindow.Name; Unexpected result
Thank you very much. So if I understand well, there is no difference between the two properties. Regards Gianluigi 2017-06-16 15:19 GMT+02:00 adamn...@gmail.com: > On Fri, 16 Jun 2017 15:07:20 +0200 > Gianluigi wrote: > > > Please take a look at the attached test. > > From DesktopWindow.Name I would expect the name of the Form Name > property, > > and instead I get the Title. > > Do you think it should be reported as a bug? > > > > Regards > > Gianluigi > > No, that is 100% correct under the Portland definition (and exactly what > the Gambas help says.) > > b > -- > B Bruen > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] static ? in variables
tested was a cache doc problem maybe.. thanks ... i now understand clarelly about class using static and private.. but for variables: wiki was: "If the static keyword is specified, the same variable will be shared with every object of this class." well seems "Public var" and "Static public var" are equal and there's no difference? so where are the logic with public static? please iluminate me... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 7:43 GMT-04:00 PICCORO McKAY Lenz: > umm i tested your "test.tar.gz" in gambas 3.1.1 and does not raised that > behaviour.. now i must go to my work and tested in gambas 3.9 due here was > where the problem .. > > when the pup up help advise raises show that could be instanciated.. but i > just tested your "test.tar.gz" project attached previously (was just like > you do it) and its works > > i post feedback .. maybe its a bug in generation of docs.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-16 6:33 GMT-04:30 Tobias Boege : > >> On Fri, 16 Jun 2017, adamn...@gmail.com wrote: >> > On Fri, 16 Jun 2017 12:38:50 +0200 >> > Tobias Boege wrote: >> > >> > > Can you give a full project? The attached project contains everything >> > > you said about your class, and it works. It is instantiable. Is the >> > > *error message* really that the class cannot be instantiated or is >> > > there another error which just prevents objects from being created, >> > > e.g. you use the "status" variable in the _new method? >> <---? >> > > >> > > Regards, >> > > Tobi >> > > >> > > -- >> > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> > >> > Eh? You can use static variables in dynamic methods... or Constants >> would never work. >> > (You cannot access dynamic variables from static methods.) >> > >> >> Right :-/ (in my defense, this was the first thing I did after waking up) >> >> I should've just said: give a full project. >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] DesktopWindow.Name; Unexpected result
On Fri, 16 Jun 2017 15:07:20 +0200 Gianluigiwrote: > Please take a look at the attached test. > From DesktopWindow.Name I would expect the name of the Form Name property, > and instead I get the Title. > Do you think it should be reported as a bug? > > Regards > Gianluigi No, that is 100% correct under the Portland definition (and exactly what the Gambas help says.) b -- B Bruen -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] DesktopWindow.Name; Unexpected result
Please take a look at the attached test. >From DesktopWindow.Name I would expect the name of the Form Name property, and instead I get the Title. Do you think it should be reported as a bug? Regards Gianluigi TestWindowName-0.0.1.tar.gz Description: GNU Zip compressed data -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] static ? in variables
umm i tested your "test.tar.gz" in gambas 3.1.1 and does not raised that behaviour.. now i must go to my work and tested in gambas 3.9 due here was where the problem .. when the pup up help advise raises show that could be instanciated.. but i just tested your "test.tar.gz" project attached previously (was just like you do it) and its works i post feedback .. maybe its a bug in generation of docs.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 6:33 GMT-04:30 Tobias Boege: > On Fri, 16 Jun 2017, adamn...@gmail.com wrote: > > On Fri, 16 Jun 2017 12:38:50 +0200 > > Tobias Boege wrote: > > > > > Can you give a full project? The attached project contains everything > > > you said about your class, and it works. It is instantiable. Is the > > > *error message* really that the class cannot be instantiated or is > > > there another error which just prevents objects from being created, > > > e.g. you use the "status" variable in the _new method? > <---? > > > > > > Regards, > > > Tobi > > > > > > -- > > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > Eh? You can use static variables in dynamic methods... or Constants > would never work. > > (You cannot access dynamic variables from static methods.) > > > > Right :-/ (in my defense, this was the first thing I did after waking up) > > I should've just said: give a full project. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] static ? in variables
On Fri, 16 Jun 2017, adamn...@gmail.com wrote: > On Fri, 16 Jun 2017 12:38:50 +0200 > Tobias Boegewrote: > > > Can you give a full project? The attached project contains everything > > you said about your class, and it works. It is instantiable. Is the > > *error message* really that the class cannot be instantiated or is > > there another error which just prevents objects from being created, > > e.g. you use the "status" variable in the _new method?<---? > > > > Regards, > > Tobi > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Eh? You can use static variables in dynamic methods... or Constants would > never work. > (You cannot access dynamic variables from static methods.) > Right :-/ (in my defense, this was the first thing I did after waking up) I should've just said: give a full project. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] static ? in variables
On Fri, 16 Jun 2017 12:38:50 +0200 Tobias Boegewrote: > Can you give a full project? The attached project contains everything > you said about your class, and it works. It is instantiable. Is the > *error message* really that the class cannot be instantiated or is > there another error which just prevents objects from being created, > e.g. you use the "status" variable in the _new method?<---? > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk Eh? You can use static variables in dynamic methods... or Constants would never work. (You cannot access dynamic variables from static methods.) b -- B Bruen -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] static ? in variables
On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > tobias..now making a library in the ide, the class that not have the > "create static" now not permits instanciate the class > > i only put a variable static, rest of class not have create static > > Export > > Private dblocal As String = "file1.txt" > Static Public status As Integer = 0 > > now the class "dbcontext" said cannot be instanciate, i do not have > the CREATE PRIVATE declaration inside it! > Can you give a full project? The attached project contains everything you said about your class, and it works. It is instantiable. Is the *error message* really that the class cannot be instantiated or is there another error which just prevents objects from being created, e.g. you use the "status" variable in the _new method? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk test-0.0.1.tar.gz Description: Binary data -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user