Check User has not entered duplicate data
Posted: Mon Jan 07, 2019 1:32 pm
Happy New Year all,
I have a Field I want the user to enter a unique Project code reference eg. "GFB". Sometimes the Project code reference can be very similar eg. "GFR" so I want to ensure the user doesn't duplicate a reference as the Project Code must be unique.
So I tried doing the following...
But Livecode is not liking it. So I have rummaged in my Livecode Lessons Books but so far I haven't seen anything that covers what I'm trying to do. However I am thinking there maybe a way of doing it using the example shown here http://lessons.livecode.com/m/2592/l/12 ... ce-of-text but it does seem a bit complicated (well to me it does) 
I have a Field I want the user to enter a unique Project code reference eg. "GFB". Sometimes the Project code reference can be very similar eg. "GFR" so I want to ensure the user doesn't duplicate a reference as the Project Code must be unique.
So I tried doing the following...
Code: Select all
on keyDown
if field me = me Then
Beep
else
pass keydown
end if
end keyDown
