Functions.VarPutSym 方法 |
命名空间: XSharp.RT
[NeedsAccessToLocalsAttribute(TRUE)] FUNCTION VarPutSym( symVar AS SYMBOL, uValue AS USUAL ) AS USUAL
[NeedsAccessToLocalsAttribute(true)] public static __Usual VarPutSym( __Symbol symVar, __Usual uValue )
1LOCAL cFieldName 2cFieldName := "Address" 3VarPut(cFieldName, "Hollywood, Room 222")
1LOCAL cHasName 2cHasName := "cPrivate" 3// 使用以下代码替代 &cHasName := "new": 4VarPut(cHasName, "new") 5? cPrivate // new
1VarPut("cVar", "hi") 2? _MEMVAR->cVar // hi