Click here to Skip to main content
15,885,952 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys.

i'm trying run a function that checks if a variable name exists, for example, i want to check if there's a variable called "potato", if so, then, the variable called "potato" equals to "chips".

Thanks
Posted
Comments
Richard MacCutchan 19-Sep-14 4:50am    
You cannot do that since variable names have no meaning except during compilation.
Sunil P V 13-Oct-14 3:24am    
You question is open ended. When you say variable names does it mean within a class or a text contained in some sort of an editor. Please be very explicit for members to help you out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900