Operator # (Preprocessor Stringize)


Preprocessor operator to convert macro arguments to strings

Syntax:
#macro_argument

Description:
This operator converts the macro_argument into a string whose value is the name of the argument. This substitution is made during the macro expansion, previous to compilation.


Examples:
#define SEE(x) Print #x ;" = "; x
Dim variable As Integer, another_one As Integer
variable=1
another_one=2
SEE(variable)
SEE(another_one)


Output:
variable = 1
another_one = 2


Differences from QB:
See also:
Back to Preprocessor Operators
Back to Operators
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode