Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Unknown Variable

Posted on by 3,027

Hi

   I am getting this error - You have specified and unknown variable hash


CREATE(Hash, FALSE, FALSE);
mystr := Hash.CalculateMD5("No.");
CLEAR(Hash);
EXIT(HashString);

Thanks

*This post is locked for comments

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Unknown Variable

    Thats fine sir you want to encrypt this but system should know like what exactly hash is??

    Instead of this Hash.CalculateMD5("No."); if you write jsshivalik.CalculateMD5("No.") and you say am facing error like - You have specified and unknown variable jsshivalik then its a genuine error dont you think so??

    You need to say to system somewhere whats the reference of this jsshivalik.

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Unknown Variable

    Hi

      I don't know what is Hash. I just wanted to encrypt a string & then decrypt in another software. For that i tried this code. How it works i don't know

    Thanks

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Unknown Variable

    Hi,

    Is Hash a table ? You need to declare it in your Global variables before you code it

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans