FUNCTION Bin2Logic( pszLogical AS PSZ ) AS LOGIC
public static bool Bin2Logic( Psz pszLogical )
The PSZ type is included in the X# language and runtime for compatibility only.
In most cases the type can and should be replaced with normal strings. |
If you need to interface with Win32 API functions that expect an ansi string, there is often also an alternative with a unicode string. We recommend to use that alternative when possible.
1ptrHandle := FOpen("sales.txt", FO_READ) 2cByte := Space(1) 3FRead(ptrHandle, @cByte, 1) 4? Bin2Logic(cByte))) // Returns either TRUE or FALSE 5FClose(ptrHandle)
Copyright © 2015-2022 XSharp BV, All rights reserved. The VO SDK classes are Copyright © Computer Associates.