Pointers broken in 1.01 ?
Posted: Tue Apr 14, 2015 12:09 am
The following code works in 1.00 but doesn't in 1.01
I think it's to do with the pointer to the OnLoadFunction
I think it's to do with the pointer to the OnLoadFunction
Code: Select all
Global plaintext.s
Global secret.s
Global final.s
Procedure LoadScript(Script$, *OnLoadFunction)
Debug "start load"
!$.getScript(v_Script$,p_OnLoadFunction);
Debug "end load"
EndProcedure
Procedure Loaded()
Debug "loaded"
!var v_plaintext = 'Abcd';
!var v_secret = '1234';
!var encrypted = CryptoJS.AES.encrypt(v_plaintext, v_secret);
!var decrypted = CryptoJS.AES.decrypt(encrypted, v_secret);
!v_final = decrypted.toString(CryptoJS.enc.Utf8);
Debug final
EndProcedure
LoadScript("http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js",@Loaded());