Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-07 Thread Robert Moss
OK, //CODE EXAMPLE AT END OF MSG I have a subclass of Socket, Which is a socket, but contains some extra data, so that in the event handler, I have more than just the TAG property to work with. It seems that I cannot have a dynamically sized array. When i try putting: PUBLIC mySW[] as SWSocke

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Doriano Blengino
Rob ha scritto: > On Thursday 06 November 2008 13:37, Doriano Blengino wrote: > >> i.e., LAST is a reference to the object that raised the event, and you >> can compare it to anything you like (probably widgets). >> > > Yes, that should work, but with limitations. You would have to hardcod

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Rob
On Thursday 06 November 2008 13:37, Doriano Blengino wrote: > i.e., LAST is a reference to the object that raised the event, and you > can compare it to anything you like (probably widgets). Yes, that should work, but with limitations. You would have to hardcode the name of the control you wish

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Doriano Blengino
Rob ha scritto: > On Thursday 06 November 2008 07:19, Robert Moss wrote: > >> Ok, awesome. But what is a control group and how do I use one? I can't >> find any documentation on it >> > > ' in Form_Open > btns[0].tag = 0 > btns[1].tag = 1 > Could also work (in the event handler): iF L

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Rob
On Thursday 06 November 2008 07:19, Robert Moss wrote: > Ok, awesome. But what is a control group and how do I use one? I can't > find any documentation on it The "control group" concept in the form designer corresponds to what comes after the "AS" when you programmatically create a control. In

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Fabien Bodard
the group is only the fact that the buttons have the same event handle 2008/11/6 Fabien Bodard <[EMAIL PROTECTED]>: > robert can you write your question in a more detailled way, ... > > because i can explain you ... but do you want to know ? > > to know which button ... you can just put a numer in

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Fabien Bodard
robert can you write your question in a more detailled way, ... because i can explain you ... but do you want to know ? to know which button ... you can just put a numer in each in the tag property ... then in the event you get the number by Last.Tag For i = 0 to 10 hBut = New Button(me) as "

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Robert Moss
Ok, awesome. But what is a control group and how do I use one? I can't find any documentation on it On Thu, Nov 6, 2008 at 4:16 AM, Stefano Palmeri <[EMAIL PROTECTED]>wrote: > Il giovedì 6 novembre 2008 13:05:42 Robert Moss ha scritto: > > Hello, I am fairly new to GAMBAS but a experienced in C++

Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Stefano Palmeri
Il giovedì 6 novembre 2008 13:05:42 Robert Moss ha scritto: > Hello, I am fairly new to GAMBAS but a experienced in C++ and VB 6. I am > trying to create an array of sockets, so that I can maintain a dynamic > number of connections, and use the same code for each. > > I've been struggling for HOURS

[Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Robert Moss
Hello, I am fairly new to GAMBAS but a experienced in C++ and VB 6. I am trying to create an array of sockets, so that I can maintain a dynamic number of connections, and use the same code for each. I've been struggling for HOURS searching for the answer on google, and trying as much different cod