send data from a listbox to textbox
-
could someone help me with this problem the error said Object reference not set to an instance of an object. Dim dd As Array Dim ee As Integer Dim tt As String ListBox1.Items.CopyTo(dd, ee) ''''error occurs here'''' tt = ee TextBox1.Text = tt
Well, dd is null, and ee is 0. What did you expect ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
could someone help me with this problem the error said Object reference not set to an instance of an object. Dim dd As Array Dim ee As Integer Dim tt As String ListBox1.Items.CopyTo(dd, ee) ''''error occurs here'''' tt = ee TextBox1.Text = tt
use 'new' dim dd as new array