You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "rucksacktraeger" started this thread

Posts: 14

Date of registration: Mar 18th 2014

  • Send private message

1

Wednesday, April 2nd 2014, 10:47pm

listbox - bestimmter Eintrag

Hallo,

habe eben eine Listbox eingebaut und soweit alles gut:


' List1.AddItem("Test " & Now)
' MsgBox List1.ListCount
' List1.Parent.setSelectedIndex(1)
' MsgBox List1.Parent.getSelectedIndex
' List1.Parent.getSelectedValue
' List1.RemoveItem(List1.ListIndex)
' List1.Clear

Aber was ich nicht hinbekomme ist das auslesen eines bestimmten Eintrages a la
MsgBox List1.Item(1).Value

Wo werde ich fündig? hab hier schon alles abgesucht und bei Googe Swing component etc. Das kann doch nicht sein!?

LG, Pete

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Thursday, April 3rd 2014, 1:32am

Aber was ich nicht hinbekomme ist das auslesen eines bestimmten Eintrages a la
MsgBox List1.Item(1).Value
Es gibt zwei Möglichkeiten:
1. den Java-Weg:

Jabaco Source

1
MsgBox List1.Parent.getModel.getElementAt(1)

2. den Jabaco/VB6-Weg:

Jabaco Source

1
MsgBox List1.List(1)


Grüße
theuserbl

This post has been edited 1 times, last edit by "theuserbl" (Apr 3rd 2014, 2:34am)


Rate this thread
WoltLab Burning Board