setting autohilite or focusborder for fields

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

setting autohilite or focusborder for fields

Post by reelstuff » Tue Oct 13, 2009 2:23 pm

I am trying to set either the autolite or the focusborder,

not sure which is correct, when I user may forget to enter required data,

sort of like validation in javascript,

Code: Select all

  answer "You must enter the password, that was given to you number 0-10 letters, lower and upper case"
   set the autohilite of fld "pw" to true
   set the focus of fld "pw" to true
   exit to top

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Tue Oct 13, 2009 2:30 pm

Hi reelstuff,

maybe simply

...
select text of fld "pw"
...

does the job? :-)


Best

Klaus

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

Post by reelstuff » Wed Oct 14, 2009 11:24 am

Klaus wrote:Hi reelstuff,

maybe simply

...
select text of fld "pw"
...

does the job? :-)


Best

Klaus
Thank you Klaus, yes it even works when no text has been entered into the fld, very nice,

Post Reply