Int := 8; str := FORMAT(Int); SystemArray := SystemConvert.FromBase64String(str); BitArray := BitArray.BitArray(SystemArray); FOR i := 0 TO BitArray.Length - 1 DO BEGIN MESSAGE(FORMAT(BitArray.Get(i))); END;
SystemArray := SystemArray.CreateInstance(GETDOTNETTYPE(SystemByte),4);
Int Integer SystemConvert DotNet System.Convert.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' SystemString DotNet System.String.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' str Text
Int := 8; SystemString := SystemConvert.ToString(Int,2); str := SystemString; SystemString := PADSTR('',8-STRLEN(SystemString),'0') + str; MESSAGE(SystemString);
Answers
Can you provide the code and variables (declarations) you use?
I cannot re-create your scenario without those...
I managed it by myself ... (everyone feel free to post a better solution)
With kind regards
mik