Re: [Gambas-user] Multidimensional dynamic array basics

2015-08-19 Thread nando
te that here) The most important part is to understand the difference about DECLARING variable names (for the program to compile) (using DIM or Private or Public) and CREATING new variables at run-time. (like ...As NEW Object[500] ...As NEW Label) I'm pretty sure I got the syntax right. -N

[Gambas-user] datediff problem

2015-08-01 Thread nando
t be a TimeZone problem. I am in GMT -5 but daylight savings during the summer it is -4 Am I correct to say this is not correct operation? -Nando -- ___ Gambas-user mailing li

[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 a

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

2015-07-29 Thread nando
Print p.Sizeof() 'run-time error -N -- Original Message --- From: "nando" To: mailing list for gambas users Sent: Wed, 29 Jul 2015 21:00:10 -0400 Subject: Re: [Gambas-user] Print SizeOf(t) 't is a string > SWEET! > Thank you Benoit. >

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

2015-07-29 Thread nando
SWEET! Thank you Benoit. -- Original Message --- From: Benoît Minisini To: nand...@nothingsimple.com, mailing list for gambas users Sent: Wed, 29 Jul 2015 21:37:29 +0200 Subject: Re: [Gambas-user] Print SizeOf(t) 't is a string > Le 29/07/2015 21:15, nando

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 To: nand...@nothingsimple.com, mailing list

[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 -- ___ Gambas-user

[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 Gam

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

2015-06-04 Thread nando
; 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 =

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 To: mailing list for gambas users Sent: Sat, 30 May 2015 17:41:43 +0300 Subject: Re: [Gambas-use

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" To: "'mailing list for gambas users'" Sent: Wed, 11 Feb 2015 15:23:36 +0100 Subject: Re: [Gambas-user] Invoking interpr

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 To: mailing list for gambas users Sent: Thu, 23 Jan 2014 03:31:56 +0200 Subject: Re: [Gambas-user] Gambas Future or what kind of Gambas we want. > I would guess by far the largest number of potential > &

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 Me

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 To: mailing list for gambas users Sent: Sun, 22 Dec 2013 23:35:33 -0800 Subject: Re: [Gambas-user] Serial port control > I think the RTheshold of VB sim

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 To: gambas-user@lists.sourceforge.net Sent: Sun, 15 Dec 2013 16:02:11 -0500 Subject: Re: [Gambas-user] S

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 To: gambas-user

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

2013-11-12 Thread nando
nand...@nothingsimple.com, mailing list for gambas users 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 statements > > I

[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 a

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

Re: [Gambas-user] how to make threats

2013-11-12 Thread nando
ct: 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 &am

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 To: mailing list for gambas users Sent: Mon, 11 Nov 2013 14:01:28 -0430 Subject: [Gambas-user] h

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 differe

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

2013-11-05 Thread nando
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 To: mailing list for gambas users 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 simply write benchmark? > > Jussi > > On Mon, Nov 4, 201

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

2013-10-07 Thread nando
Lovely -- Original Message --- From: Caveat 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. I think the > closing p

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

2013-10-05 Thread nando
r' is in Gambas, MySQL knows nothing of it. -Nando -- Original Message --- From: Willy Raets To: mailing list for gambas users Sent: Sat, 05 Oct 2013 14:08:27 +0200 Subject: Re: [Gambas-user] Problem with Gambas and MySql > On Sat, 2013-10-05 at 10:08 +0200, Fernando Mart

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

2013-10-05 Thread nando
-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 >

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 Mes

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, Product.Descrip

Re: [Gambas-user] Microsoft Access database

2013-08-12 Thread nando
ACCESS db is really just a file ,and not a 'server' like MySQL You need software to install on your linux box to tickle the file. There is something out there, I did use something on a box a while back. (sorry forgot what is was) -- Original Message --- From: Caveat To: gambas-us

Re: [Gambas-user] Array slicing - how is it done in Gambas?

2012-10-11 Thread nando
An alternate consideration is to create a dynamic object array and .add the myString[] elements you want. You'll end up with an array of pointers to the original string text. No copying of data, just pointers. I've done this in the past. Works very nice. -- Original Message --- Fr

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 To: gambas-user@lists.sourceforge.net Sent: Wed, 10 Oct 2012 11:57:15 +0200 Subject: Re: [Gambas-user] Example to IIF: what is meant here >

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 j>255 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 possibl

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] 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 snippet.

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 co

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 To: mailing list fo

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

2012-05-19 Thread nando
Nice! -- Original Message --- From: Benoît Minisini To: mailing list for gambas users 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 profile a project from the IDE. > > This is not finished yet.

[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 || ===

[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../.. -I/usr/lib/qt-3.3/includ

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

2012-04-27 Thread nando
messy over many calculations. -Nando -- Original Message --- From: Jussi Lahtinen To: mailing list for gambas users Sent: Fri, 27 Apr 2012 21:44:08 +0300 Subject: Re: [Gambas-user] gb3: incorrect solution to If...Then condition > If Sin(0.5) ^ 2 + Cos(0.5) ^ 2 <> 1

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 M

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 don

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 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 'Combine both together >

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 The"This sub string is to be removed (21 chars long) 'Remo

Re: [Gambas-user] WebPage support in Gambas

2012-03-18 Thread nando
Thank you!!! I'm going to migrate Thank you Benoit -- Original Message --- From: Benoît Minisini To: nand...@nothingsimple.com, mailing list for gambas users Sent: Mon, 19 Mar 2012 00:40:17 +0100 Subject: Re: [Gambas-user] WebPage support in Gambas > Le 19/03/2012 00:1

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 brows

Re: [Gambas-user] gb3: how to check if event is pending execution before it triggers

2012-03-17 Thread nando
How about this... Let's say you want the Frame to render not less than 0.5 seconds after reading UDP stuff...but only if there is no UDP stuff to read. So, make a Timer that is solely for Frame render/updating. When UDP_Read triggers, store your data to render/update, but don't render it yet. A

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

2012-03-05 Thread nando
Simple answer: yes Complex answer: yes -- Original Message --- From: Ru Vuott To: mailing list for gambas users Sent: Sun, 4 Mar 2012 15:23:24 + (GMT) Subject: Re: [Gambas-user] Gambas has Gosub now! > > But I get a compile error: > > error: 'TRANS_GOTO' has no member named

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

2012-03-03 Thread nando
Superb work! Bravo! -- Original Message --- From: Benoît Minisini To: mailing list for gambas users Sent: Sun, 04 Mar 2012 02:23:57 +0100 Subject: Re: [Gambas-user] Gambas has Gosub now! > Le 04/03/2012 02:03, Emil Lenngren a écrit : > > Nice work! > > About "occupying" the Ret

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 To: i...@eilert-sprachen.de, mailing list f

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 OBJEC

[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 act

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 -- Or

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 manu

Re: [Gambas-user] Gambas bug?

2012-02-10 Thread nando
First, what are you trying to do? -- Original Message --- From: Fabián Flores Vadell To: mailing list for gambas users Sent: Fri, 10 Feb 2012 16:39:12 -0300 Subject: [Gambas-user] Gambas bug? > Hi. > > When I execute this: > > Print Object.Call(["John", "Peter"], "Count") >

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

2012-02-06 Thread nando
-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

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

2012-02-06 Thread nando
MFmain.Label1.text = "test_string" -- Original Message --- From: abbat 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 > Label1

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 To: gambas-user@lists.sourceforge.net Sent: Sun, 05 Feb 2012 02:39:43 -0500 Subject: [Gambas-user] gb3: converting

Re: [Gambas-user] inheritance problems

2012-02-04 Thread nando
itance problems > On 04/02/12 17:42, nando wrote: > > PUBLIC myint is only exactly one variable. > > It's public. > > > > > > -- Original Message --- > > From: Shane Powell > > To: nand...@nothingsimple.com, mailing list for gambas

Re: [Gambas-user] inheritance problems

2012-02-03 Thread nando
PUBLIC myint is only exactly one variable. It's public. -- Original Message --- From: Shane Powell To: nand...@nothingsimple.com, mailing list for gambas users Sent: Sat, 04 Feb 2012 17:16:17 +1100 Subject: Re: [Gambas-user] inheritance problems > On 04/02/12 15:5

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 To: mailing list for gambas users Sent: Sat, 04 Feb 2012 12:05:24 +1100 Subject: [Gambas-user] inheritance problems > I have this in my program > > class 1 >public array of class 2 > >

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 To: Gambas-user@lists.sourceforge.net Sent:

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." To: mailing list for gambas users Sent: Thu, 19 Jan 2012 21:57:53 +0100 Subject: [Gambas-user] Help! I can't find the error > querry = "SELECT * FROM MP3

Re: [Gambas-user] Gambas Object Reference Count

2012-01-10 Thread nando
rence Count > See http://gambasdoc.org/help/comp/gb/object/count?v3 > > 2012/1/10 nando > > > Benoit, > > Is there a way to find out what the actual reference count is for a GAMBAS > &g

[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 or

[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 " Replace$( s , "", STR$(i) , gb.case) Replace$( s , "", STR$(i) , gb.case) The first Replace will do the substitution The second Replace will not do the substitution The Question is this: will th

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" To: m

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 d

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 dis

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 To: mailing list for gambas users Sent: Wed, 14 Dec 2011 19:00:06 +0100 Subject: Re: [Gambas-user] Help in sending sms > On 14.

Re: [Gambas-user] Bug drawing_area

2011-11-25 Thread nando
ssage --- From: Rolf-Werner Eilert 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 To: i...@eilert-sprachen.de, mailing list for gambas users Sent: Fri, 11 Nov 2011 15:58:17 +0100 Subject: Re: [Gambas-user] Counting chara

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 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 binary log, but my

Re: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes

2011-08-30 Thread nando
What type of connection are you using ? -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.sourceforge.net Sent: Tue, 30 Aug 2011 05:31:52 -0400 Subject: Re: [Gambas-user] gb3: using string as stream for sequential write operations of arbitrary datatypes > On 0

Re: [Gambas-user] write to file question

2011-08-17 Thread nando
I agree. The code looks correct. -- Original Message --- From: Jussi Lahtinen To: mailing list for gambas users Sent: Tue, 16 Aug 2011 19:31:19 +0300 Subject: Re: [Gambas-user] write to file question > What is your Gambas version and operating system? > Can you send demonstrat

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

2011-07-23 Thread nando
embedded strings too? -- Original Message --- From: "nando" To: mailing list for gambas users Sent: Sat, 23 Jul 2011 14:24:17 -0400 Subject: Re: [Gambas-user] Do embeded objects get released too upon destruction ? > Does not the following line make the class "_i

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:

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

2011-07-20 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

[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 seco

[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 <---T

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 String)

Re: [Gambas-user] gb3: Format$

2011-06-25 Thread nando
gt; 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$ lin

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 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 wrote: > >> I'm using this to print

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 To: Gambas-user@lists.sourceforge.net Sent: Thu, 23 Jun 2011 15:28:28

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 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 of my WD Velociraptor har

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 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 package is available for

Re: [Gambas-user] CGI rights to access directory

2011-05-12 Thread nando
A possibility: SGID (Set Group ID) bit Setting the SGID bit for a file sets your group ID to the file's group while the file is executing. -- Original Message --- From: Rolf-Werner Eilert To: gambas-user@lists.sourceforge.net Sent: Thu, 12 May 2011 09:14:03 +0200 Subject: [Gamba

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

2011-05-11 Thread nando
pty string > > Label1.text = s' <-this does not overwrite the 'B' to > > empty. > > > > -Fernando > > > > > > -- Original Message --- > > From: "nando" > > To: "Benoit" > &

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

2011-05-10 Thread nando
' s is correct: empty string Label1.text = s' <-this does not overwrite the 'B' to empty. -Fernando -- Original Message --- From: "nando" To: "Benoit" Sent: Tue, 10 May 2011 22:58:58 -0400 Subject: [Gambas-user] This Gam

[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] 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 To: mailing list for gambas users Cc: Benoît Min

  1   2   3   >