Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Fabien Bodard
Public Function GetDestinos() As String[] Dim RelenosCombox As New String[] hresul = hconn.Find("tb_destino") for each hResul RelenosCombox.Add(hresul["destino_id"] & "|" & hresul["destino_descripcion"]) next Return RelenosCombox End 2) in form class Public Sub ComboBo

Re: [Gambas-user] Possible bug in round() function

2014-01-31 Thread Ricardo Díaz Martín
Thanks for the explanation. Just for this reason I wrote "possible bug" instead "bug". Definitely what a disillusioning floating points! It will be great if gambas could work natively with decimal numbers. Until this time I'll still working with long * 10^decimal digits. Regards, Ricardo 2014-0

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > >> do the following: create a String[] aResult or something. Then use the > >> hresult["whatever_id"], converted to an Integer, as index: > >> > >> aResult.Add(hresult["payload"], CInt(hresult["whatever_id"])) > >> > > umm this mees might work like

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
>> do the following: create a String[] aResult or something. Then use the >> hresult["whatever_id"], converted to an Integer, as index: >> >> aResult.Add(hresult["payload"], CInt(hresult["whatever_id"])) >> > umm this mees might work like the collection idea also dont work!!! combobox auto enumra

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From: Beno?t Minisini > A 'MinDate' property could be a good idea... > And a 'MaxDate' too, why not? HEY BENOIT, NEVERMIND! FORGET IT AND MAKE THE EXAMPLES OF GB.WEB PLEASE!!! (i still remenber that mail ok) > From: Tobias Boege >> do

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > errr about collection another question.. documentation are not cleary > how to use.. > > its creatable ? > > http://gambasdoc.org/help/lang/collection?cs&v3 > > dim pep as new collection? > > in that link does not show how to instanciate/create/m

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
errr about collection another question.. documentation are not cleary how to use.. its creatable ? http://gambasdoc.org/help/lang/collection?cs&v3 dim pep as new collection? in that link does not show how to instanciate/create/make a var of type Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > > However, if you want to use > > strings as indices, you better forget about String[] (which only accepts > > integer indices) and use Collection. > > does gambas provide collections in same way of java does? > No, in Gambas, a Collection is a ha

Re: [Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread Benoît Minisini
Le 31/01/2014 17:52, PICCORO McKAY Lenz a écrit : > There's some way to select specific date and limits choose to this day in > the datechoose calendar component? > > i mean... limits the dais to choose to only future dais! > > Lenz McKAY Gerardo (PICCORO) A 'MinDate' property could be a good id

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
> However, if you want to use > strings as indices, you better forget about String[] (which only accepts > integer indices) and use Collection. does gambas provide collections in same way of java does? > However, if you want to fill a ComboBox, you cannot pass a string as the > second argument to

Re: [Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread PICCORO McKAY Lenz
> From: Tobias Boege > You have to do that yourself (let dtcDate be your DateChooser): ¬_¬u > Public Sub dtcDate_Change() > dtcDate.Value = Max(Now(), dtcDate.Value) > End > Alas, the DateChooser does not support Stop Event in the Change event, so > I always reset the dtcDate.Value to Now() whe

Re: [Gambas-user] KeyPress Escape to close a form

2014-01-31 Thread Benoît Minisini
Le 31/01/2014 19:25, Tobias Boege a écrit : > On Fri, 31 Jan 2014, abbat81 wrote: >> How to make an event for Key Press Escape button to close a form >> Thanks >> > > Do you mean: > > Public Sub Form_KeyPress() >If Key.Code = Key.Esc Then Me.Close() > End > > This has nothing to do with a Butto

Re: [Gambas-user] KeyPress Escape to close a form

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, abbat81 wrote: > How to make an event for Key Press Escape button to close a form > Thanks > Do you mean: Public Sub Form_KeyPress() If Key.Code = Key.Esc Then Me.Close() End This has nothing to do with a Button you were mentioning in the question but honestly, I don't se

Re: [Gambas-user] how to sum 3 days to Date

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > i wish to make a date diff > > but my upper date must be the "now" + 3 days in future, how to make this > addition to the Day(now) value if are in ending (just like 31) due 31 + 3 > are 34!!! > Mind looking at the documentation? DateAdd(Now(),

[Gambas-user] KeyPress Escape to close a form

2014-01-31 Thread abbat81
How to make an event for Key Press Escape button to close a form Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/KeyPress-Escape-to-close-a-form-tp45464.html Sent from the gambas-user mailing list archive at Nabble.com. -

[Gambas-user] how to sum 3 days to Date

2014-01-31 Thread PICCORO McKAY Lenz
i wish to make a date diff but my upper date must be the "now" + 3 days in future, how to make this addition to the Day(now) value if are in ending (just like 31) due 31 + 3 are 34!!! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -

Re: [Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > There's some way to select specific date and limits choose to this day in > the datechoose calendar component? > > i mean... limits the dais to choose to only future dais! > You have to do that yourself (let dtcDate be your DateChooser): Public

[Gambas-user] how to set a specific day in datechooser component

2014-01-31 Thread PICCORO McKAY Lenz
There's some way to select specific date and limits choose to this day in the datechoose calendar component? i mean... limits the dais to choose to only future dais! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com ---

Re: [Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, PICCORO McKAY Lenz wrote: > i try to fill combobox but i cannot access array objects by index names: > > ComboBoxLinDest.Add(objetivodestino["destino_descripcion"], > objetivodestino["destino_id"]) > > the code to fill array matrix are: > > 1) in transpor class > > Public F

[Gambas-user] how to fill combobox with specific index from a array matrix

2014-01-31 Thread PICCORO McKAY Lenz
i try to fill combobox but i cannot access array objects by index names: ComboBoxLinDest.Add(objetivodestino["destino_descripcion"], objetivodestino["destino_id"]) the code to fill array matrix are: 1) in transpor class Public Function GetDestinos() As String[] Dim RelenosCombox As New Stri

Re: [Gambas-user] Is this a bug

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, Wolfgang wrote: > Hello all, > > I found a strange behaviour with opacity. > > Example: > Public Sub ButtonStart_Click() > Dim img1, img2 As Image > Dim i As Integer > > 'let us load an image to img1 > img1 = Image.Load("data/map.png") > > > For i = 1 To 20 > i