Hi Guys ,
I am writing a function to calculate MD5 Hash in Navision.
I am taking a .net code as reference but I got stuck on a code which goes like
byte[] data = md5Hash.ComputeHash(Encoding.UTF8.GetBytes(input));
then
data.Length
So I declared a variable called VarByte in Nav of Datatype DotNet and Subtype System.Byte.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' then System.Byte
My problem is that when I do VarByte .Length is does not recognise this property .
Even I set the dimension on the variable it gives me the same error.
If I try to declare my variable as byte directly ,it does not accept the previous code I wrote i.e
VarByte:=md5Hash.ComputeHash(Encoding.UTF8.GetBytes(input)); It throws an error of Invalid Datatype From Byte to DotNet
Does anyone know how to get the length of a byte variable in Navision ?
0
Comments
Try This code.