Hi Guys,
I have a field name "No." on a Form and I want to use this Form to insert a new number into the table the form looks to. The number should have seven digits and if less than seven I want to have a window with an error message.When I click OK it should CLEARALL .The field "No." is of data type code. My problem is that I don't know how to code that.
Thanks for help.
0
Comments
length := STRLEN("No.");
if length <7 then error ('Your Message')
http://ssdynamics.co.in
IF STRLEN("THe Field") <> 7 THEN
FIELDERROR("THe Field",'The length should be 7');
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Technical Consultant, MS Dynamics NAV
RIS Plus, LLC
Actually the orig Post doesn't specify that it has to be 7 just "at least" 7.
How about
we can probably write 100 versions of this code
http://www.BiloBeauty.com
http://www.autismspeaks.org
RIS Plus, LLC
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Well there can be a bunch of sight tweaks as above :whistle:
http://www.BiloBeauty.com
http://www.autismspeaks.org
Or more "geek" condition:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.