Functions.SEval 方法 |
命名空间: XSharp.RT
FUNCTION SEval( cString, cbBlock, nStart, nCount ) AS STRING CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })] public static string SEval( __Usual cString = default, __Usual cbBlock = default, __Usual nStart = default, __Usual nCount = default )
1LOCAL cStreetNumber AS STRING 2LOCAL cAddress AS STRING 3cStreetNumber := NULL_STRING 4cAddress := "1209 West Golden Lane" 5SEval(cAddress, ; 6 {|c| cStreetNumber += ; 7 If(IsDigit(Chr(c)), Chr(c), NULL_STRING)}) 8? cStreetNumber // 1209