[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Assign A string To an Object

How I will Assign A string To an Object
0
lincyelias
Asked:
lincyelias
1 Solution
 
arif_eqbalCommented:
dim obj as Object
obj="Some String"
0
 
pradeepsudharsanCommented:
Hi,
Use CObj() method.

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

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now