Functions.MLPos 方法 |
命名空间: XSharp.RT
FUNCTION MLPos( cText, nWidth, nLine, nTabSize, lWrap ) AS DWORD CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })] public static uint MLPos( __Usual cText = default, __Usual nWidth = default, __Usual nLine = default, __Usual nTabSize = default, __Usual lWrap = default )
1LOCAL cString AS STRING 2LOCAL wLine AS DWORD 3LOCAL wPosition AS DWORD 4cString = MemoRead("temp.txt") 5nLineLength = 40 6wLine = 5 7wPosition = MLPos(cString, nLineLength, wLine) 8? Substr(cString, wPosition, 12)