07-31-2007 11:34 AM
08-01-2007 09:48 AM
08-13-2007 04:47 AM
Hello Walter,
Thank you very much for your helpful reply. That was exactly the suggestion which I was looking for. Unfortunatly I got a trouble to get the index of the value which I would like to select from the listbox. Lets say I would like select the expression "red" from the listbox and press "Ok" button. I wana get the idex of the expression "red". If red is on the first line Index=1. If Red is written on the line 10 index=10.
I thought the following code could be work. But unfortunatly it doesnt. I dont know why. Do you have any idea how to get this woking?
Sub Ok_EventClick()
Dim This : Set This = Ok
Call GlobalDim (" Eventindex ")
Dim iCurrIndex : iCurrIndex = Listbox1.Value
If (iCurrIndex > 0)Then
Eventindex = 1 + Listbox1.Value
End If
msgbox(Eventindex)
End Sub
Let me know if you need more information.
Thanks!!!
08-13-2007 05:53 AM
Hello FHM!
I think the reason is that Walter forgot to increment the loop counter 'iLoop'. Every item got the same value 0.
Just add a iLoop = iLoop + 1 in the while loop.
Hope that helps
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
08-13-2007 06:45 AM
08-13-2007 06:56 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
08-13-2007 06:57 AM