Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Ronald Bastien

@Ronald Bastien
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • class variable name
    R Ronald Bastien

    Jordan, You're right but I'm oversimplyfying my code to give an example of what I'm looking for. Is it possible in the CallingSomething routine to access the objAddress object and through some property (from the framework) get the name the variable from the caller? The thing is, I need to pass the object so I don't want to pass an additional string with it's name. I'm also passing this object to other routines so this makes it a less attractive solution. Cheers Ronald Bastien Strategium Technologies inc.

    Visual Basic question csharp

  • class variable name
    R Ronald Bastien

    I could but I'm already passing the object so I don't want to pass the name as well. This object can also be passed down through an hierachy of calls and again, I don't want to have to pass the name with the object. Cheers. Ronald Bastien Strategium Technologies inc.

    Visual Basic question csharp

  • class variable name
    R Ronald Bastien

    Hi all, Is there a way to retrieve the name of the variable containing an object passed to a subrouting. Here is a simple illustration meant to explain my question; I have the following two class defintions Public Class Address public City as string ... End Class Public Class Organisation Public MailingAddress as new Address public BillingAddress as new Address public sub CallSomething() ' pass the object whose variable name we want to display CallingSomething(MailingAddress) end sub public sub CallingSomething(objAddress as Address) 'display the name of the variable of objAddress as it is known in my Class Organisation. The display should be "MailingAddress". end sub End Class Using objAddress.GetType.Name gives me the "Address" which is the class name but I'm looking for the variable name "MailingAddress". If I had passed the BillingAddress, obviously I would want to display "BillingAddress". Can this be done in VB.NET? Thanks in advance. Ronald Bastien. Strategium Technologies inc.

    Visual Basic question csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups