Re: [Gambas-user] Multidimensional dynamic array basics

2015-08-19 Thread nando
...As NEW Object[500] ...As NEW Label) I'm pretty sure I got the syntax right. -Nando -- Original Message --- From: Kevin Fishburne kevinfishbu...@eightvirtues.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Wed, 19 Aug 2015 02:22:54 -0400 Subject

[Gambas-user] datediff problem

2015-08-01 Thread nando
but daylight savings during the summer it is -4 Am I correct to say this is not correct operation? -Nando -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net

[Gambas-user] mkinteger..and the reverse function

2015-07-31 Thread nando
I'm putting this out there... I'm using MkInteger$, MkShort$ Who knows what the opposite functions would be. I can't find them myString = MkInteger$(12345678) 'convert an integer to a string representation myInteger = ?? (myString) 'convert back to an integer anyone? -Nando

[Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread nando
Dim t As String Print SizeOf(t) Type mismatch: wanted integer, got string instead 'Sizeof also errors on a Stucture Ubuntu 14.04LTS Gambas 3.7.1 -Fernando -- ___

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread nando
Thanks guys, I was in 'C' mode and needed the size of a structure. Perhaps, Benoit, sizeof(a string, or a struct) can do exactly that? wishing out loud. Thanks! DOH! -Nando -- Original Message --- From: Benoît Minisini gam...@users.sourceforge.net To: nand...@nothingsimple.com

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread nando
is a string Le 29/07/2015 21:15, nando a écrit : Thanks guys, I was in 'C' mode and needed the size of a structure. Perhaps, Benoit, sizeof(a string, or a struct) can do exactly that? wishing out loud. Thanks! DOH! -Nando If you a pointer to the structure, just use

[Gambas-user] Stack Overflow...with QT4 combobox

2015-07-22 Thread nando
Gambas 3.7.1 QT4 I get stack overflow with... ComboBox1.value = Not ComboBox1.value -Nando -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https

[Gambas-user] Console error message...

2015-07-21 Thread nando
Benoit, I get this message on the terminal where I run gambas3: It happens when I click on menu: PROJECT - MAKE - EXECUTABLE - OK uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList, DBusMenuLayoutItem): Condition failed: menu I use Ubuntu 14.04 Gambas 3.7.1 -Nando

Re: [Gambas-user] R: how to generation 12 random letters (A-Z and 0-9)

2015-06-04 Thread nando
Paul Horechuk phorec...@gmail.com: Just being a bit picky here, but shouldn't that be Rnd(1,36) ? 26 letters and 10 digits? On 15-06-02 08:49 AM, nando wrote: Alternate: Dim j as Byte Dim s as String For j = 1 To 12 s = Mid(ABCDEFGJIJKLMOPQRSTUVWXYZ0123456789, Int(1, 13), 1

Re: [Gambas-user] R: how to generation 12 random letters (A-Z and 0-9)

2015-06-02 Thread nando
Alternate: Dim j as Byte Dim s as String For j = 1 To 12 s = Mid(ABCDEFGJIJKLMOPQRSTUVWXYZ0123456789, Int(1, 13), 1) Next Print s -- Original Message --- From: Jussi Lahtinen jussi.lahti...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent:

Re: [Gambas-user] Invoking interpreter from complied program

2015-02-11 Thread nando
you could put instructions in a file and pass the filename as arg1. then open the file and read and process the instructions -- Original Message --- From: CJ li...@hth.com To: 'mailing list for gambas users' gambas-user@lists.sourceforge.net Sent: Wed, 11 Feb 2015 15:23:36 +0100

Re: [Gambas-user] Gambas Future or what kind of Gambas we want.

2014-01-23 Thread nando
. Thank you -Nando -- Original Message --- From: Jussi Lahtinen jussi.lahti...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Thu, 23 Jan 2014 03:31:56 +0200 Subject: Re: [Gambas-user] Gambas Future or what kind of Gambas we want. I would

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
it for your devices. I assure you it can certainly do it without fail. -Nando -- Original Message --- From: Randall Morgan rmorga...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
for 124 bytes. Both of these can be a Gambas Class and the second function is the public function. You can use _new to instantiate the serial port control. You don't need to create it at design time. I used techniques like this and it works like a charm. -Nando -- Original Message

Re: [Gambas-user] SteamOS and GAMBAS

2013-12-16 Thread nando
Made my day. Other than available software, there is nothing about Windows remotely superior to GNU/Linux. - Kevin Fishburne -- Original Message --- From: Kevin Fishburne kevinfishbu...@eightvirtues.com To: gambas-user@lists.sourceforge.net Sent: Sun, 15 Dec 2013 16:02:11

Re: [Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-13 Thread nando
. (you may think the speed difference might be trivial, but it is important to me) Also, remove or delete all the items in OBJECT[] if you destroy the controls. You may have pointers pointing to invalid/unused memory. -Nando -- Original Message --- From: Charlie char

Re: [Gambas-user] how to make threats

2013-11-12 Thread nando
+0100 Subject: Re: [Gambas-user] how to make threats And how would you stop such a thread when you finish the main program (GUI)? Am 11.11.2013 23:31, schrieb nando: one way is to make use rc.local file and place the name of the executable there with a at the end to make it run

Re: [Gambas-user] Questions about reading of a text file with Read.

2013-11-12 Thread nando
Please read the help on READ. When you specify a string variable 's' with out a length then the string length byte is read first. So your string you are reading is probably 49 characters long and Im guessing the first is probably character 48 so it will only read 48 characters starting in the next

[Gambas-user] Question READ WRITE in V3

2013-11-12 Thread nando
Benoit, I use (still) v1.17 and v2 and I use the READ and WRITE statements I have not ported to v3 yet. When I was replying to someone's issue about READ I came across the V3 help for READ Question: is it still true that WRITE #file, s,14 will write 14 bytes and NOT write the length first just

Re: [Gambas-user] Question READ WRITE in V3

2013-11-12 Thread nando
...@users.sourceforge.net To: nand...@nothingsimple.com, mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Tue, 12 Nov 2013 14:25:16 +0100 Subject: Re: [Gambas-user] Question READ WRITE in V3 Le 12/11/2013 14:11, nando a écrit : Benoit, I use (still) v1.17 and v2 and I use the READ and WRITE

Re: [Gambas-user] Key code constant wrong?

2013-11-11 Thread nando
Thank you for the nostalgia. I had an 8800b - lots of fun. and I do remember the black ones were NC. Early in the PC days, there was no keypad. I remember explicitly when the keypad came into use, the keypad ENTER was a different code. Caused me a headache, but allowed for using the keypad

Re: [Gambas-user] how to make threats

2013-11-11 Thread nando
one way is to make use rc.local file and place the name of the executable there with a at the end to make it run in the background. -- Original Message --- From: PICCORO McKAY Lenz mckaygerh...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent:

Re: [Gambas-user] Unexecuted Orphan Code or Something?

2013-11-05 Thread nando
the oddest output. It would be worse if it executed at the moment before a new month started and even more so if it executed at the moment before a new year. In a multitasking computer, it is possible to slice out at the worst possible time. Time-sensitive calculations must not do this. -Nando

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-04 Thread nando
I vote for (2) -- Original Message --- From: Jussi Lahtinen jussi.lahti...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Mon, 4 Nov 2013 23:43:10 +0200 Subject: Re: [Gambas-user] if-else vs try who are best faster in machine time? Why not

Re: [Gambas-user] [slightly OT] No Problem with Gambas or MySql!

2013-10-07 Thread nando
Lovely -- Original Message --- From: Caveat gam...@caveat.demon.co.uk To: gambas-user@lists.sourceforge.net Sent: Mon, 07 Oct 2013 14:04:55 +0200 Subject: Re: [Gambas-user] [slightly OT] No Problem with Gambas or MySql! Thanks Randall, we got some great discussions going here.

Re: [Gambas-user] Problem with Gambas and MySql

2013-10-05 Thread nando
, 2013-10-04 at 22:53 +0200, Willy Raets wrote: Nando, Fernando and Caveat, Thanks for your responses. Content in 'ICzakgewicht' can be like this: | ID | Gewicht | 345 100 345 100 345 50 347 200 347 200 347 200 347 200 @ Fernando and Caveat Above you can see

Re: [Gambas-user] Problem with Gambas and MySql

2013-10-05 Thread nando
, MySQL knows nothing of it. -Nando -- Original Message --- From: Willy Raets wi...@earthshipbelgium.be To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sat, 05 Oct 2013 14:08:27 +0200 Subject: Re: [Gambas-user] Problem with Gambas and MySql On Sat, 2013-10

Re: [Gambas-user] Problem with Gambas and MySql

2013-10-04 Thread nando
For MySQL to operate properly, you MUST have a column which is a primary key. A good table will always have one column set as Primary Key. If you don't have one, make one as INT(9) AutoIncrement, Not NULL Name the column 'recid' and use 'recid' to delete a particular row -- Original

Re: [Gambas-user] SQL query for DB.Exec() question

2013-08-29 Thread nando
I see spaces in the field 'Initial IC' and 'Actual IC'. If you're using a space in the field name - DONT!!! Use _ underscore instead. Don't use a spaces in any names. You complicate life with them and make you want to pull your hair out. This should work myString = SELECT IC.ID,

Re: [Gambas-user] Example to IIF: what is meant here

2012-10-11 Thread nando
Is this translatable ? X = 7 PRINT You have X If(X 1, messages, message) waiting. -- Original Message --- From: Caveat gam...@caveat.demon.co.uk To: gambas-user@lists.sourceforge.net Sent: Wed, 10 Oct 2012 11:57:15 +0200 Subject: Re: [Gambas-user] Example to IIF: what is

Re: [Gambas-user] Unending cycle For...Next with variable As Byte

2012-10-02 Thread nando
When using Byte data type The loop iteration when j=255 is 255 + 1 = 0 Thus, the end condition of j255 can never happen It is an endless loop. This 'problem' is correct operation for the datatype used. This issue arises always at the boundary of the datatype when math takes it beyond the

Re: [Gambas-user] Check on entered number having more than 6 digits not working

2012-08-13 Thread nando
I'd say, if a number has been inputted and it's in the range -90 ... + 90 then it is a valid long. No more testing required. Period!!! If you multiply it by 6 zero's then it could be -90,000,000 ... +90,000,000 and you're defeating the whole thing. What you're doing is pointless. for this

Re: [Gambas-user] Check on entered number having more than 6 digits not working

2012-08-13 Thread nando
That's perfectly fine. Let me offer this plan of attack. Test if it is between -90 and +90 multiply by 1,000,000 into an INTEGER which chops all decimal digits to the right of the decimal point. then if you need float, divide by 1,000,000. But if you do that , don't be surprised for digits farther

Re: [Gambas-user] VB to Gambas conversion question

2012-07-28 Thread nando
Not a cast It is Forced Double at compile time. 0 is usually interpreted when compiled as 0 (integer) 0.0 would be interpreted as non-integer 0# same thing but forces the representation as double. Reason behind doing this: if you have a double array t#(0..25) when you do t#(I) = 0 The zero

Re: [Gambas-user] mysql float behaviour

2012-06-27 Thread nando
Primary keys are supposed to be unique unrelated to the actual data such as an INT with auto increment so there will never, ever be duplicates. If you use actual data (like a name) you CAN get duplicates and you are breaking the design theory. If you think you'll never get a duplicate, you will.

Re: [Gambas-user] mutex applications

2012-06-06 Thread nando
I'd like to suggest a form property called 'Singleton' when _new or _init is called (whichever creates the object) then it will not create a second and only return the first instance of it. Somewhat like a module. -- Original Message --- From: Benoît Minisini

Re: [Gambas-user] New feature in Gambas 3

2012-05-19 Thread nando
Nice! -- Original Message --- From: Benoît Minisini gam...@users.sourceforge.net To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sat, 19 May 2012 13:58:19 +0200 Subject: [Gambas-user] New feature in Gambas 3 Hi, I have just added the ability to

[Gambas-user] Gambas 2 on CentOS 6.2 does not compile

2012-05-16 Thread nando
Full clean install CentOS 6.2 As per README in Gambas2 STEP 1: ./reconf-all (no error) STEP 2: ./configure -C (no error but some gambas packages were disabled) STEP 3: ./make (this is just the last part of the console) libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../..

[Gambas-user] Gambas 3 on CentOS 6.2 does not compile

2012-05-16 Thread nando
Full clean CentOS 6.2 Gambas 3 === Gambas ./configure -C results || || THESE COMPONENTS ARE DISABLED: || - gb.db.sqlite2 || - gb.gsl || - gb.image.imlib || - gb.opengl || - gb.pdf || - gb.sdl || - gb.sdl.sound || - gb.v4l ||

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread nando
many calculations. -Nando -- Original Message --- From: Jussi Lahtinen jussi.lahti...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Fri, 27 Apr 2012 21:44:08 +0300 Subject: Re: [Gambas-user] gb3: incorrect solution to If...Then condition If Sin

Re: [Gambas-user] Problem with row count in mysql

2012-04-05 Thread nando
My two cents worth: I see a few problems: 1) There is an erroneous END just above PRINT iData near the end of your example or something is out of order(?) 2) iData is a Result data type and not an INTEGER...and iData doesn't have the row counts but iData.count is an INTEGER 3) Internally

Re: [Gambas-user] Load hidden file to variable?

2012-04-02 Thread nando
A hidden file IS hidden by default from normal views. So, the result appears to be correct. (Benoit: maybe a flag is needed for hidden files in call?) Nevertheless, LOAD ought to work with hidden files too. (Are your permissions correct) Files extensions and associations are a windoze thing and

Re: [Gambas-user] Delete sentance between words in a file.

2012-03-28 Thread nando
Yup. Too much beer. -- Original Message --- From: Rolf-Werner Eilert eilert-sprac...@t-online.de To: gambas-user@lists.sourceforge.net Sent: Wed, 28 Mar 2012 11:58:43 +0200 Subject: Re: [Gambas-user] Delete sentance between words in a file. Just D = B + C

Re: [Gambas-user] Delete sentance between words in a file.

2012-03-27 Thread nando
An Very Simplified Example: (Best viewed in fixed-width font) (There are many other (and better) ways to do this) A = A Tall Lad Sold All The Desks '12345678901234567890123456789 29 characters long R = Tall Lad Sold All TheThis sub string is to be removed (21 chars long)

Re: [Gambas-user] WebPage support in Gambas

2012-03-19 Thread nando
-user] WebPage support in Gambas Le 19/03/2012 00:15, nando a écrit : If you wanted to know, an English term for Nothing is engraved in the marble would be Nothing is etched in stone. === One thing I am thinking right off the top is the equivalent to sessions in PHP

Re: [Gambas-user] WebPage support in Gambas

2012-03-18 Thread nando
If you wanted to know, an English term for Nothing is engraved in the marble would be Nothing is etched in stone. === One thing I am thinking right off the top is the equivalent to sessions in PHP where a specific folder on the server holds something equivalent that is sent by the

Re: [Gambas-user] Gambas has Gosub now!

2012-03-05 Thread nando
Simple answer: yes Complex answer: yes -- Original Message --- From: Ru Vuott vu...@yahoo.it To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sun, 4 Mar 2012 15:23:24 + (GMT) Subject: Re: [Gambas-user] Gambas has Gosub now! But I get a compile

Re: [Gambas-user] Gambas has Gosub now!

2012-03-03 Thread nando
Superb work! Bravo! -- Original Message --- From: Benoît Minisini gam...@users.sourceforge.net To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sun, 04 Mar 2012 02:23:57 +0100 Subject: Re: [Gambas-user] Gambas has Gosub now! Le 04/03/2012 02:03, Emil

Re: [Gambas-user] How to organize dependent lists

2012-02-28 Thread nando
I would do it this way 1) I would make a class for data 1. If contains whatever PRIVATEs you wish 2) I would make an OBJECT[] which hold as many of the above class instances you need 3) I would make an OBJECT[] which hold as many of the above OBJECT[] as you need item 1: OBJECT[] has two

Re: [Gambas-user] How to organize dependent lists

2012-02-28 Thread nando
The second level OBJECT[] actually turns out to be an array of Classes. My experience is people understand the OBJECT[] way because of the container within a container concept. It is the same thing :) -- Original Message --- From: tobi tobiasboeg...@googlemail.com To:

[Gambas-user] Dim Keyword..I noticed something

2012-02-26 Thread nando
I am using some keywords as Integer vars DIM {event} AS INTEGER DIM {timer} AS INTEGER In the IDE, the second line automatically capitalized and highlighted as a keyword with keyword color. In Gambas2. Maybe it propagated forwards into Gambas 3 -Fernando

[Gambas-user] Possible suggestion/question

2012-02-25 Thread nando
Benoit, I came across the need to call many different common small pieces of code multiple times. Naturally, we tend to make a SUB just for all of them. I wondered if you'd consider resurrecting GOSUB {label} which is in the same sub. It would be in the same scope, no parameters allowed and

Re: [Gambas-user] String array empty after SUB (Gambas 2)

2012-02-23 Thread nando
felder as STRING[] is a parameter passed into sub It is no good outside of SUB What you should do is make your sub PUBLIC FUNCTION ListeKundeFelder(schlysselnr AS String, felder AS String[]) AS STRING[] and return the string[], assigning it to the original felder[] -Fernando --

Re: [Gambas-user] Memory problems with Gambas3

2012-02-19 Thread nando
I had a similar huge problem with pictures. I found it to be this: When I made a new picture, even if using an existing control, the old picture still consumed the memory - it wasn't freed. I solved it by doing (recalling from memory so I may have syntax wrong) picture.clear which deallocated the

[Gambas-user] Class Constructor private var questions

2012-02-12 Thread nando
I wanted to verify that.. example: I have a class called 'X' with a private variable PRIVATE my_int AS INTEGER = -14 PUBLIC SUB _NEW()'===constructor=== my_int = -15 END Questions: 1) The =-14 act as a constructor automatically for a _NEW instantiation? 2) The =-15 occur as a

Re: [Gambas-user] Gambas bug?

2012-02-10 Thread nando
First, what are you trying to do? -- Original Message --- From: Fabián Flores Vadell fabianfloresvad...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Fri, 10 Feb 2012 16:39:12 -0300 Subject: [Gambas-user] Gambas bug? Hi. When I execute

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread nando
I am doing the same thing. Using class in place of structures. Then arrays or collections of the classes. Works great! -- Original Message --- From: Kevin Fishburne kevinfishbu...@eightvirtues.com To: gambas-user@lists.sourceforge.net Sent: Sun, 05 Feb 2012 02:39:43 -0500

Re: [Gambas-user] Send from .module to .class

2012-02-06 Thread nando
MFmain.Label1.text = test_string -- Original Message --- From: abbat abbat...@mail.ru To: gambas-user@lists.sourceforge.net Sent: Sat, 4 Feb 2012 15:01:59 -0800 (PST) Subject: [Gambas-user] Send from .module to .class How can I send a string test_string from Main.module to

Re: [Gambas-user] gb3: converting structures to classes

2012-02-06 Thread nando
-0500 Subject: Re: [Gambas-user] gb3: converting structures to classes On 02/06/2012 09:36 AM, nando wrote: I am doing the same thing. Using class in place of structures. Then arrays or collections of the classes. Works great! What are the general steps to do such a thing? How do you

Re: [Gambas-user] inheritance problems

2012-02-04 Thread nando
+1100 Subject: Re: [Gambas-user] inheritance problems On 04/02/12 17:42, nando wrote: PUBLIC myint is only exactly one variable. It's public. -- Original Message --- From: Shane Powellshanep1...@tpg.com.au To: nand...@nothingsimple.com, mailing list for gambas users

Re: [Gambas-user] Pointer-Memory Question

2012-02-03 Thread nando
Is this a possible reason? Write #strm moves the pointer to 4 past where it was first set. Read is reading a SINGLE immediately after what you wrote You need to seek backwards 4 places ?? -Fernando -- Original Message --- From: Wally wa...@voosen.eu To:

Re: [Gambas-user] inheritance problems

2012-02-03 Thread nando
How can it be empty AND have elements in it? -- Original Message --- From: Shane Powell shanep1...@tpg.com.au To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sat, 04 Feb 2012 12:05:24 +1100 Subject: [Gambas-user] inheritance problems I have this in my

Re: [Gambas-user] inheritance problems

2012-02-03 Thread nando
] inheritance problems On 04/02/12 15:57, nando wrote: How can it be empty AND have elements in it? -- Original Message --- From: Shane Powellshanep1...@tpg.com.au To: mailing list for gambas usersgambas-user@lists.sourceforge.net Sent: Sat, 04 Feb 2012 12:05:24 +1100

Re: [Gambas-user] Help! I can't find the error

2012-01-20 Thread nando
I see 10 items to SET. I count more than 10 vars in the list of variables ?? -Fernando -- Original Message --- From: M. Cs. mohar...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Thu, 19 Jan 2012 21:57:53 +0100 Subject: [Gambas-user] Help! I

[Gambas-user] Gambas Object Reference Count

2012-01-10 Thread nando
Benoit, Is there a way to find out what the actual reference count is for a GAMBAS object at runtime? -Fernando -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new

Re: [Gambas-user] Gambas Object Reference Count

2012-01-10 Thread nando
+0100 Subject: Re: [Gambas-user] Gambas Object Reference Count See http://gambasdoc.org/help/comp/gb/object/count?v3 2012/1/10 nando nand...@nothingsimple.com Benoit, Is there a way to find out what the actual reference count is for a GAMBAS object at runtime? -Fernando

[Gambas-user] GAMBAS Test Suite question

2012-01-02 Thread nando
I'd like to know if there is a comprehensive test suite out there to test all (or as much as possible of) of GAMBAS ? It would be easier over time and new releases to run the 'big' test to prove anything that might become broken. Opinions? -Fernando

[Gambas-user] Question about REPLACE$

2011-12-31 Thread nando
Question: Code piece dim i as integer dim s as string i = 12345 s = the number is NUM Replace$( s , NUM, STR$(i) , gb.case) Replace$( s , ABC, STR$(i) , gb.case) The first Replace will do the substitution The second Replace will not do the substitution The Question is this:

Re: [Gambas-user] Gambas 3 is out!

2011-12-30 Thread nando
Im using Centos 5.6 ./reconf-all failed aclocal doesn't have --install flag Suggestions? -Fernando [root@localhost ~]# cd gambas3-3.0.0 [root@localhost gambas3-3.0.0]# ./reconf-all libtoolize: unrecognized option `--nonrecursive' Try `libtoolize --help' for more information. autoreconf: Entering

Re: [Gambas-user] Gambas 3 is out!

2011-12-30 Thread nando
Well, I realize CentOS is behind the times even though it is latest version. I'll stick with GAMBAS2 temporarily... So, which flavor of Linux should I migrate to? Your suggestions? This will be my new year resolutions. -- Original Message --- From: nando nand...@nothingsimple.com

Re: [Gambas-user] Getting an Object instance from a string

2011-12-28 Thread nando
...If I understand properly, I had a similar issue years ago. You want to extend each class and override each with it's own personal .getproperty. Dynamic dispatching will call the correct SUB So, you want to wrap into a SUB the Object.GetProperty(sModule, Var1) so that it gets dynamically

Re: [Gambas-user] Issue 165 in gambas: Arithmetic problem with float

2011-12-22 Thread nando
Personally, I do not see this as a problem for a float doing this calculation. Since it is transcendental function, this will happen. Plus, float is not 64 bits of precision, it is 52 bits. I suggest use INT or LONG This type of round-off error goes back to the beginning of time -Fernando

Re: [Gambas-user] Help in sending sms

2011-12-14 Thread nando
I have heard connecting (usb) a computer to a smartphone and using the smartphone to do the SMS work is one way. -- Original Message --- From: tobias tobiasb...@web.de To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Wed, 14 Dec 2011 19:00:06 +0100

Re: [Gambas-user] Bug drawing_area

2011-11-25 Thread nando
--- From: Rolf-Werner Eilert eilert-sprac...@t-online.de To: gambas-user@lists.sourceforge.net Sent: Fri, 25 Nov 2011 08:08:33 +0100 Subject: Re: [Gambas-user] Bug drawing_area Am 25.11.2011 07:33, schrieb nando: Benoit, I have a drawing_area and I draw a line from 0,0 to 150,200

[Gambas-user] Bug drawing_area

2011-11-24 Thread nando
Benoit, I have a drawing_area and I draw a line from 0,0 to 150,200 and I slowly move the drawing area off the left of the screen. The line does not continue with the drawing area off screen. Instead, it stops at the left of FMain and does not continue staying at (0,0) of drawing area _Draw is

Re: [Gambas-user] Question - how to just run part of ones larger program

2011-11-21 Thread nando
You could run a second copy from the first. Place a specific word on the command line as a parameter so that the copy will understand to show the specific screen desired and perhaps hide other menus. You can tailor startup to do something specific based on command line parameter(s). -Nando

Re: [Gambas-user] Counting characters

2011-11-13 Thread nando
If i'm not mistaken, the +1 at the end chould not be there. for i =1 to len (sValue)+1 -- Original Message --- From: Fabien Bodard gambas...@gmail.com To: i...@eilert-sprachen.de, mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Fri, 11 Nov 2011

Re: [Gambas-user] Gambas 2 and mysql bin-log

2011-08-30 Thread nando
set the logging level in the configuration file higher than zero -- Original Message --- From: fvegaf fve...@hotmail.com To: gambas-user@lists.sourceforge.net Sent: Tue, 30 Aug 2011 11:12:18 -0700 (PDT) Subject: [Gambas-user] Gambas 2 and mysql bin-log I turned on the mysql

Re: [Gambas-user] write to file question

2011-08-17 Thread nando
I agree. The code looks correct. -- Original Message --- From: Jussi Lahtinen jussi.lahti...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Tue, 16 Aug 2011 19:31:19 +0300 Subject: Re: [Gambas-user] write to file question What is your

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread nando
Does not the following line make the class _init execute with each new instance of the class? DIM Q AS NEW myClass[5]' constructor executes 5 times Then, with each new instance there is the NEW object array with HELLO 100 times When the reference to myClass is gone, as in:

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread nando
to the embedded strings too? -- Original Message --- From: nando nand...@nothingsimple.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Sat, 23 Jul 2011 14:24:17 -0400 Subject: Re: [Gambas-user] Do embeded objects get released too upon destruction ? Does

[Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-21 Thread nando
Question: If I have a class 'myClass' with the following: DIM k = NEW OBJECT[100] PUBLIC SUB _init() DIM i AS INTEGER FOR i = 1 TO 100 k[i] = NEW STRING[] 'add a string array k[i].add(HELLO)'add one element with HELLO NEXT END

[Gambas-user] Cloning instances of a class to make an exact copy

2011-07-20 Thread nando
Question: Assume I have an instance of class myclass dimed as 'myclass1' and I want to clone all the data to NEW myclass2 The syntax may be something like: myclass2 = NEW myclass 'create instance myclass2.clone(myclass1) 'clone/copy I do realize that: myclass2 = myclass2 only assigns a

[Gambas-user] Question about classes abd class variables

2011-07-16 Thread nando
Benoit, I'm look for clarity on a particular thing. Consider the following example class named 'K': STATIC PUBLIC GridX AS Integer PUBLIC c AS Integer = 0 PUBLIC SUB clear() c = 0 END The following two lines are in _init of another class or module: K.GridX = 6

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-07-01 Thread nando
In a true multi-user multi-tasking environment the following is good except it is missing one thing: The TRY must be added because during the IF test and the MKDIR, it might have been created. This makes it the list error prone. Private Sub CreateNewOutputFolder(psFolderSpecification As

Re: [Gambas-user] Programming, age

2011-06-25 Thread nando
There is not a limit! I am in late 40's and started programming in 1975. I've written from 8080a assembly to anything now. Send me any questions and I'll answer. -- Original Message --- From: Dag-Jarle Johansen dag.jarle.johan...@gmail.com To: Gambas-user@lists.sourceforge.net

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread nando
18:35 is 6:35 pm just in 24 hour time -- Original Message --- From: Kevin Fishburne kevinfishbu...@eightvirtues.com To: gambas-user@lists.sourceforge.net Sent: Sat, 25 Jun 2011 18:45:16 -0400 Subject: Re: [Gambas-user] gb3: Format$ On 06/24/2011 06:42 PM, Benoît Minisini

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread nando
-user] gb3: Format$ On 06/25/2011 07:05 PM, nando wrote: 18:35 is 6:35 pm just in 24 hour time I understand that. I just don't understand why a completely different line is affect by the previous line's Format$. If I comment out the Format$ lines, the same value is printed

Re: [Gambas-user] We live a dangerous life sometimes...

2011-05-26 Thread nando
Best wishes on your voyage! -- Original Message --- From: Benoît Minisini gam...@users.sourceforge.net To: gambas-user@lists.sourceforge.net Sent: Thu, 26 May 2011 19:15:31 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... Hi, I'm going to flash the firmware

Re: [Gambas-user] Gambas 3 first release candidate

2011-05-21 Thread nando
I must ask: what is IRL ? -- Original Message --- From: Benoît Minisini gam...@users.sourceforge.net To: gambas-user@lists.sourceforge.net Sent: Sat, 21 May 2011 14:15:37 +0200 Subject: [Gambas-user] Gambas 3 first release candidate Hi Gambas fellows, The Gambas 3 RC1 source

Re: [Gambas-user] This Gambas 2 example does not work properly:

2011-05-11 Thread nando
--- From: nando nand...@nothingsimple.com To: Benoit gambas-user@lists.sourceforge.net Sent: Tue, 10 May 2011 22:58:58 -0400 Subject: [Gambas-user] This Gambas 2 example does not work properly: Make a label on a form: Label1 In code, run the following 3 lines: Label1

Re: [Gambas-user] Dynamically loading components

2011-05-10 Thread nando
To me, it could be implemented with one Gambas main program and you SHELL or EXEC to your component Gambas programs. Thus, they're only loaded when they run. When they're done, they're freed. -- Original Message --- From: Sebi Kul sebi...@gmail.com To: mailing list for gambas

[Gambas-user] This Gambas 2 example does not work properly:

2011-05-10 Thread nando
Make a label on a form: Label1 In code, run the following 3 lines: Label1.text = B Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) Label1.text = Left$(Label1.text, 0) Line 2 or line 3 should reduce it to an empty string. It doesn't -Fernando

Re: [Gambas-user] This Gambas 2 example does not work properly:

2011-05-10 Thread nando
' -this does not overwrite the 'B' to empty. -Fernando -- Original Message --- From: nando nand...@nothingsimple.com To: Benoit gambas-user@lists.sourceforge.net Sent: Tue, 10 May 2011 22:58:58 -0400 Subject: [Gambas-user] This Gambas 2 example does not work properly: Make

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-09 Thread nando
I looked at the YouTube: cool!!! After working with OpenGL, you basically need to calculate which is nearer or farther away from the 'eye' I don't believe there is anything native in Gambas, this is very unique. But I am thinking... -- Original Message --- From: Kevin Fishburne

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-05 Thread nando
...@eightvirtues.com To: gambas-user@lists.sourceforge.net Sent: Thu, 05 May 2011 01:46:22 -0400 Subject: Re: [Gambas-user] gb3: sorting an array-like structure On 05/05/2011 01:39 AM, nando wrote: ? Do you mean sorting [0, 1] to [1000, 1] Because the 1 is the second element of the second dimension

Re: [Gambas-user] Can someone explain why this works?

2011-05-05 Thread nando
Subject: Re: [Gambas-user] Can someone explain why this works? because text.max is not text.count ! http://gambasdoc.org/help/comp/gb/array/max?v3 2011/5/5 nando nand...@nothingsimple.com: Benoit, Can you explain why this works and the reasoning behind it? I would think there would

Re: [Gambas-user] Run-time bug

2011-05-05 Thread nando
Thanks Benoit, I was still thinking 'static' Thinking 'dynamic' it makes sense I will make this adjustment in my brain. Very much appreciated. -Fernando -- Original Message --- From: Benoît Minisini gam...@users.sourceforge.net To: nand...@nothingsimple.com, mailing list for

Re: [Gambas-user] Lost Timer1

2011-05-05 Thread nando
@lists.sourceforge.net Sent: Fri, 6 May 2011 15:13:00 +1000 Subject: Re: [Gambas-user] Lost Timer1 On Friday 06 May 2011 02:06:05 nando wrote: I've had similar happen. Now, I create a visible=false panel called invisible_stuff and put things on it I can negative x,y it off the form so I cannot delete

[Gambas-user] Run-time bug

2011-05-04 Thread nando
' Gambas class file PRIVATE test AS String[30, 30] PUBLIC SUB my_test() test = [Voice, Logon] '---If I REM this, there is no runtime error on next line test[0, 1] = Logon '---Runtime error: Bad Number of Dimensions PRINT test.count END Gambas2 -Fernando

  1   2   >