Functions.StrEvaluate 方法 |
命名空间: XSharp.RT
[NeedsAccessToLocalsAttribute(FALSE)] FUNCTION StrEvaluate( cString AS STRING ) AS STRING
[NeedsAccessToLocalsAttribute(false)] public static string StrEvaluate( string cString )
1MEMVAR cOne 2LOCAL cTwo AS STRING 3cOne := "世界" 4ACCEPT "输入宏字符串 " TO cTwo 5// 如果你输入 "你好 &cOne"(不带引号) 6? cTwo // 结果: "你好 &cOne" 7? StrEvaluate(cTwo) // 结果: "你好 世界"