Re: [Gambas-user] "Frozen" collections - quick answers only needed

2015-07-15 Thread Fabien Bodard
Just inherits collection and overload the _put/_get, add and remove procedures. Le 16 juil. 2015 00:33, "adamn...@gmail.com" a écrit : > On Thu, 16 Jul 2015 00:22:29 +0200 > Benoît Minisini wrote: > > > Le 16/07/2015 00:17, adamn...@gmail.com a écrit : > > > Hi all, > > > > > > I have a class th

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Fabien Bodard
Le 15 juil. 2015 16:22, "Benoît Minisini" a écrit : > > Le 15/07/2015 16:07, Rolf-Werner Eilert a écrit : > > > > Uuh interesting - thanks for the links! > > > > I just wasn't sure about this, maybe mentioning it in the help chapter > > for DIM would make it clear. > > > > What I've done so far to

Re: [Gambas-user] "Frozen" collections - quick answers only needed

2015-07-15 Thread adamn...@gmail.com
On Thu, 16 Jul 2015 00:22:29 +0200 Benoît Minisini wrote: > Le 16/07/2015 00:17, adamn...@gmail.com a écrit : > > Hi all, > > > > I have a class that exposes a collection of child objects as a > > property. How can I make it that the only object that can add or > > delete child items to/from the

Re: [Gambas-user] "Frozen" collections - quick answers only needed

2015-07-15 Thread Benoît Minisini
Le 16/07/2015 00:17, adamn...@gmail.com a écrit : > Hi all, > > I have a class that exposes a collection of child objects as a > property. How can I make it that the only object that can add or > delete child items to/from the collection is that class? In other > words, no client class is allowed

[Gambas-user] "Frozen" collections - quick answers only needed

2015-07-15 Thread adamn...@gmail.com
Hi all, I have a class that exposes a collection of child objects as a property. How can I make it that the only object that can add or delete child items to/from the collection is that class? In other words, no client class is allowed to Add a new item, or Remove or nullify any existing item.

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Benoît Minisini
Le 15/07/2015 16:07, Rolf-Werner Eilert a écrit : > > Uuh interesting - thanks for the links! > > I just wasn't sure about this, maybe mentioning it in the help chapter > for DIM would make it clear. > > What I've done so far to overcome this: When I have string arrays, I put > in data with tabbed

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Rolf-Werner Eilert
Am 15.07.2015 15:36, schrieb Benoît Minisini: > Le 15/07/2015 15:24, Rolf-Werner Eilert a écrit : >> Sure, but when I want sTest to be longer? I mean, more "rows" or "cols"? >> Can I sTest.Add ? And if yes, which dimension will be increased, the >> first one or the last one? >> > Multi-dimensional

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Rolf-Werner Eilert
Am 15.07.2015 15:41, schrieb Tobias Boege: > On Wed, 15 Jul 2015, Rolf-Werner Eilert wrote: >> Sometimes... ok: Never done this before, so I just ask: >> >> Dim sTest as String[0,0] >> >> sTest.Add("Hello", "World") >> >> Where is "Hello" now? At 0,0 or 1,1? Or: Which dimension is added? >> >> Is

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Tobias Boege
On Wed, 15 Jul 2015, Rolf-Werner Eilert wrote: > Sometimes... ok: Never done this before, so I just ask: > > Dim sTest as String[0,0] > > sTest.Add("Hello", "World") > > Where is "Hello" now? At 0,0 or 1,1? Or: Which dimension is added? > > Is that possible - or are multi-dimensional arrays not

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Benoît Minisini
Le 15/07/2015 15:24, Rolf-Werner Eilert a écrit : > Sure, but when I want sTest to be longer? I mean, more "rows" or "cols"? > Can I sTest.Add ? And if yes, which dimension will be increased, the > first one or the last one? > Multi-dimensional arrays are fixed, you can't resize them. The Add() m

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Rolf-Werner Eilert
Sure, but when I want sTest to be longer? I mean, more "rows" or "cols"? Can I sTest.Add ? And if yes, which dimension will be increased, the first one or the last one? Am 15.07.2015 13:09, schrieb Charlie: > Try this: - > > Dim sTest As New String[1, 2] > > sTest[0, 0] = "Hello" > sTest[0, 1] =

Re: [Gambas-user] Array.Add question

2015-07-15 Thread Charlie
Try this: - Dim sTest As New String[1, 2] sTest[0, 0] = "Hello" sTest[0, 1] = "World" -- View this message in context: http://gambas.8142.n7.nabble.com/Array-Add-question-tp52019p52020.html Sent from the gambas-user mailing list archive at Nabble.com. ---

[Gambas-user] Array.Add question

2015-07-15 Thread Rolf-Werner Eilert
Sometimes... ok: Never done this before, so I just ask: Dim sTest as String[0,0] sTest.Add("Hello", "World") Where is "Hello" now? At 0,0 or 1,1? Or: Which dimension is added? Is that possible - or are multi-dimensional arrays not dynamic? Thanks for your help! Rolf

Re: [Gambas-user] ?? : why this code not working

2015-07-15 Thread tsukuba GIMP user
Ok i know what problem is because the "dicer"! if dicer is 1~5 int then will be may textbox1.text content change because it's another Conditional judgment so if $dbclick = 8 then dicer = 0 <--Random content(text) is 1 to 5 Form3.TextBox1.text = ("if you click me again i will be sudo r