Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Output the Value of a Variable within a String

Keywords: 	 ouput string value

Question:

I want to output a the value of a variable stored within a string. For example
var x = value of x
string = "x"
I want to get value of x. In other languages there is a function called "eval" or "evaluate". Does winbatch have a similar function?

Answer:

x=1234
stringx="x"

valuestringx= %stringx%

Message(stringx,valuestringx)

Article ID:   W14503
Filename:   Output the Value in a String.txt