[Webinar] Streamline your web hosting managementRegister Today

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

how to use CallByName with a property that is an object

Hi,

I have been using Callbyname for properties of an object that are primative data types, but it does not seem to work with properties that are objects.  Any suggestions?



E.g. works:

Callbyname(obj, "number", vbGet)

does not work:

Callbyname(obj, "obj2", vbGet)
0
rmundkowsky
Asked:
rmundkowsky
1 Solution
 
rmundkowskyAuthor Commented:
Never mind,  I just got it figured out.

 var = Callbyname(obj, "obj2", vbGet)    'is wrong

and

set var = Callbyname(obj, "obj2", vbGet)   'is right
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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