Sign in to follow this  
Followers 0
Artz

NameOf() Error on NA (VB.NET)

1 post in this topic

Hi

On a NA programming page subroutine I was testing if something like this works but throws an error:

 

Sub getVariableName ()

Dim theVariableToWorkWith as Integer

showMeVariableName = NameOf(theVariableToWorkWith)

End sub

First thing was to make a global variable : "showMeVariableName" as String (this variable will be assigned to a Data_Display).

On page event whenever is itself displayed just call getVariableName sub and so, display "theVariableToWorkWith" text on a Data_Display object (it's text expression is the variable 'showMeVariablename'). As simple as that.

So it's not possible or there's another way to get it?

Edited by Artz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0