But I think I have a way to safely do it now, took a while...

Thanks tho!
Scott
------------------
Scott
mailto:[email protected][email protected]</A>
DIM a AS STRING * 1023 a = "1234567890"
DIM A AS ASCIIZ * 17 ' 16 plus one nul byte DIM B AS STRING * 16 ' 16 bytes A = "password" B = A IF A=B THEN PRINT "The world is falling apart!" IF A = TRIM$(B) THEN PRINT "A match!" IF LEN(A) = LEN(B) THEN PRINT "The world is falling apart" IF SIZEOF(A) = LEN(B) THEN PRINT "Same size!"
#COMPILE EXE #INCLUDE "WIN32API.INC" TYPE MYSTRUCT password AS STRING * 16 END TYPE FUNCTION PBMain() AS LONG DIM pw AS MYSTRUCT pw.password = "SecretWord" MSGBOX pw.password + $CRLF + "Length: " + FORMAT$(LEN(TRIM$(pw.password))) END FUNCTION
TYPE MYSTRUCT password AS STRING * 8 ' more vars, if necessary, here END TYPE DIM fh AS MYSTRUCT fh.password = "secret"
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: