Assign A string To an Object

How I will Assign A string To an Object
lincyeliasAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
pradeepsudharsanConnect With a Mentor Commented:
Hi,
Use CObj() method.

 Dim str As String
        str = "ABCDEFRGHJJ"
        Dim l As Object
        l = CObj(str)
        MessageBox.Show(l.ToString())

0
 
arif_eqbalCommented:
dim obj as Object
obj="Some String"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.