[Gambas-devel] Question using ComboBox Gambas 3
David Villalobos Cambronero
david.villalobos.c at ...176...
Mon Oct 25 22:16:59 CEST 2010
Hi, I', using a ComboBox to pass some values to a MySQL procedure.
I fill the combo this way:
ComboBox.Add("1", 1)
ComboBox.Add("2", 20)
ComboBox.Add("3", 30)
ComboBox.Add("4", 40)
Now, let's suppose that the "2" value is selected and I write:
Print ComboBox.Index
I expect to see printed a 20 in the terminal, but a 2 is printed.
I'm getting the use of .Index wrong or there is a bug?
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.33.5-desktop-2mnb
DistributionVendor=MandrivaLinux
DistributionRelease="Mandriva Linux 2010.1"
[System]
CPUArchitecture=i686
TotalRam=2035388 kB
[Gambas]
Gambas1=Not Installed
Gambas2=Not Installed
Gambas3=2.99.0
Gambas3Path=/usr/local/bin/gbx3
Regards
---
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20101025/99fc2bc5/attachment.html>
More information about the Devel
mailing list