Operation New() :: Plase help me
-
====================================================== Friend Class LCOtherInfo() protected ss as string public sub new(byval x as string) ss=x end sub end class ===================================================== Dim x As New LCOtherInfo(x) When i create instance of LCOtherInfo but i has an error,"can't obtain value". Please tell me the way!!!!!!!!!!!!
-
====================================================== Friend Class LCOtherInfo() protected ss as string public sub new(byval x as string) ss=x end sub end class ===================================================== Dim x As New LCOtherInfo(x) When i create instance of LCOtherInfo but i has an error,"can't obtain value". Please tell me the way!!!!!!!!!!!!
TooLeeDiN wrote: Dim x As New LCOtherInfo(x) You need to pass a string in here, you're passing in x, which is also the name of the variable you're trying to create. Christian Graus - Microsoft MVP - C++