Latebinding question ...

  • Thread starter Thread starter JustMe
  • Start date Start date
J

JustMe

Hi:

I can't get my head around how to deal with this lack of late-binding
support. Can anyone suggest how I can accomplish this? The code snippet
below does not work of course. Any suggestions on how to do this?

Items = Split(ListOfItems, ",")
messagebox.show(Items(5))
Thanks in advance.

--Terry
 
Terry --

What exactly are you trying to do here? The reflection libraries allow you
to do most anything "late bound" you could want to.

Seth Demsey
Lead Program Manager
..Net Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.
 
I guess I'm missing what you are asking. Create a new VB SmartDevice
project. Place one textbox and one button on the default form. Add the
following code to the button click event.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

Dim items() As String

items = Split(TextBox1.Text, ",")

MessageBox.Show(Items(5))

End Sub



Now start the program, type a comma delimited list of at least 6 items into
the textbox and press the button. You will see a message box with the 6th
item of the list. It works for me.



Paul Stork

(e-mail address removed)
 
Back
Top