Can not access method of .Net class from 10.2B

olala

New Member
Hi,

I am using progress verion 10.2B, Window Vista 32-bit.

10.2B supports the ability to buil ABL applications that use .Net classes,

I try to using method ComputeHash from SHA256 class to generate the sha-256 hash by coding in 10.2B.

The code as below:

using System.* FROM ASSEMBLY.
using System.TEXT.* FROM ASSEMBLY.
using System.Security.Cryptography.* FROM ASSEMBLY.
DEFINE VARIABLE hashString AS CLASS SHA256Managed NO-UNDO.
hashString = NEW SHA256Managed().
hashString:ComputeHash(Byte data).

--> When check syntax, error message display as "Could not locate method 'ComputeHash' with matching signature in class 'System.Security.Cryptography.SHA256Managed'".

I did try to use another method from SHA256Managed and it is work, example : hashString:gettype().

Please help, or if you have any idea how to generate sha-256 hash by using progress verion that lower than 11.0 please show me.

Thanks alot.

Looking forward to hearing from you soon.

Olala
 
Top