Guest User

Untitled

a guest
May 24th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. With Test.AnObject
  2.  
  3. .Something = 1337
  4. .AnotherThing = "Hello"
  5.  
  6. ''// why can't I do this to pass the object itself:
  7. Test2.Subroutine(.)
  8. ''// ... and is there an equivalent, other than repeating the object in With?
  9.  
  10. End With
  11.  
  12. tmp = Test.AnObject;
  13. tmp.Something = 1337;
  14. ...
  15. Test2.Subroutine(tmp);
  16.  
  17. Test2.Subroutine(Test.AnObject)
Add Comment
Please, Sign In to add comment