Solved. Have to add "Active String Theory" to global extensions.
------
loc:carpetaEncrip = Crypto1.EncryptString(loc:carpetaEncrip,loc:largo,loc:pass) returns 0
The correct sentence is
Crypto1.EncryptString(loc:carpetaEncrip,loc:largo,loc:pass)
Thanks
Manuel