hi,

i encountered a problem - for me - in gambas3 regarding ComboBox_Click() 
event. i have a directory name in ComboBox.Text and the contents of this 
directory in ComboBox.List. i implemented _Click() to append the current 
item's text to the directory path:

Public Sub ComboBox1_Click()

   Dim sPath As String

   Print ComboBox1.Text
   sPath = Mid$(ComboBox1.Text, 1, RInStr(ComboBox1.Text, "/"))
   ComboBox1.Text = sPath &/ ComboBox1.Current.Text

End

this results in e.g. "bin" (if ComboBox1.Text was "/" before) as output 
in terminal, so the ComboBox.Text is changed to the text of the selected 
item before the event is raised. i tried Stop Event but this didn't 
help. i want to preserve the previous text. the text of the current 
selected item is in ComboBox1.Current.Text, too, so it's twice available 
but i don't see a proper way to get the previous text.
or is this expected? i don't know if this is the same in gb2...

regards,
tobi

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to