Hi,

if you're using D7 or D8:

to select a text member: 
        you have to choices:
                1: the sprite representing  your text member in the score
must be the highest (the sprite number nearest 1) compared to the other
editable fields/text members.
                2: use the Lingo property "set the keyboardfocussprite =
<the sprite number of your editable text member>"

to hilite it: once the text member has the focus, you can use the property
"selection" on the text member (sample: member("blah").selection = [0..15])

to test for spaces use the offset command (offset(" ",
member("blah").text)). If it returns 0, that means your text doesn't
contains " ".

to test for the length,use property "count" (length =
member("blah").text.chars.count).

regards,

------------------------------------------
    Laurent BRIGAUT
    Services Division Manager
    Integration Nouveaux Media, Inc.    
    http://www.integration.qc.ca   
------------------------------------------    


> -----Original Message-----
> From: Nikaj Wiggers [mailto:[EMAIL PROTECTED]]
> Sent: 15 janvier, 2001 05:49
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> hiliting a textfield
> 
> 
> Hi list,
> 
> I wil just try it again
> 
> Can anybody help me with the following:
> 
> I have a questionaire and i have two problems:
> 
> 1) I have multiple text fields e.g. name, adress and tel.nr.
>     now i want the first field to be active and hilited. so I 
> don't have to
> select it with my mouse.
> 
> 2)  how can I check if my phonenumber field doesn't contain tekst and
> doesnt contain spaces and cointains no more than 10 digits?
> 
> I hop eyou can help me out here.
> 
> T.I.A.
> 
> 
> 
> Nikaj Wiggers
> 
> Araneum Interactive Productions
> Tussen de Bogen 113
> 1013 JB Amsterdam
> T: +31 20 6706707
> F: +31 20 6706701
> M: +31 654725584
> www.araneum.nl 
> 
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
> 

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to