aIDs is an array of Integers (You can declare an array of Strings if is
your case, or an array of Variants), and you can assing that array to a
Variant variable, as is the case of the Tag property of the combobox.
*_*
*Lic. Daniel Quintero Rojas*
*¡Saludos desde México!___
Aha! Another learning progress.
Am 03.03.2014 21:48, schrieb Tobias Boege:
> Variant can contain anything, even objects.
--
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, y
Le 03/03/2014 20:49, Matti a écrit :
> I'm playing around with a ComboBox that should have some special features.
> Looked into the sources and found out how to create and inherit it.
> Subs, Functions and Events work.
>
> But one thing is a complete riddle to me:
> In the wiki, it says: "For exam
On Mon, 03 Mar 2014, Matti wrote:
> Thanks, Daniel.
> But I don't understand how you can assign the aIDs Integer[] to the
> ComboBox.Tag that is a variant?
Variant can contain anything, even objects.
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
---
I give my 2 cents...
Send a little proyect with sample.
its a function that in design time only have to put in tag of listbox or
combobox this tablename|fieldkey|field_to_show
after that you got in the tag of the combo a variant[] with a string with
the original tag and a integer[] with the keys co
Thanks, Daniel.
But I don't understand how you can assign the aIDs Integer[] to the
ComboBox.Tag that is a variant?
Anyway, I'd prefer a custom combo, since I need it often in a form and don't
want to write everything again and again.
Am 03.03.2014 21:04, schrieb Daniel Quintero:
> I use this co
Thanks, Tobi. Sounds plausible, I'll try that.
Of course, I'm trying to write this in Gambas - I don't know any other language
except VB, but that was long ago...
Am 03.03.2014 20:55, schrieb Tobias Boege:
> On Mon, 03 Mar 2014, Matti wrote:
>> I'm playing around with a ComboBox that should have
I use this code (Obviously, without creating a custom combo):
Public Sub LoadCombo()
Dim aIDs As New Integer[]
Dim sQuery As New String
cboSample.Clear
' Load Data
hResult = $hConn.Exec("select ID, desc from MyTable")
For Each hResult
cboSample.Add(hResult!desc)
aIDs.Add(hResult!
On Mon, 03 Mar 2014, Matti wrote:
> I'm playing around with a ComboBox that should have some special features.
> Looked into the sources and found out how to create and inherit it.
> Subs, Functions and Events work.
>
> But one thing is a complete riddle to me:
> In the wiki, it says: "For exampl
I'm playing around with a ComboBox that should have some special features.
Looked into the sources and found out how to create and inherit it.
Subs, Functions and Events work.
But one thing is a complete riddle to me:
In the wiki, it says: "For example, you can create a custom MyListBox class
th
10 matches
Mail list logo