Table of contents
TOC
Collapse the table of content
Expand the table of content

Expression.Identifier

Owen Duncan|Last Updated: 4/19/2018

About

Returns a text value that can be used as an identifier from a text value.

Expression.Identifier(name as text) as text  

Arguments

ArgumentDescription
nameThe text to identify.

Examples

Expression.Identifier("foo") equals "foo"  
Expression.Identifier("10 lbs") equals "#""10 lbs"""  
Expression.Identifier("try") equals "#""try"""  
Expression.Identifier("") equals "#"""""  
Expression.Identifier(null) equals Error  

Example of combined use

Expression.Evaluate(  
// "let x = 1 in x"  
"let " &  
Expression.Identifier("x") & " = " & Expression.Constant(1) &  
" in " &  
Expression.Identifier("x")  
) equals 1  
© 2018 Microsoft