Clearing all textfields..! Help..!

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Clearing all textfields..! Help..!

Post by snop21 » Sat Mar 15, 2014 8:34 pm

Hello livecoders,

Will just ask how can I clear all the textfields of all my cards.. I have 120 textfields in total how can I clear all the fields in one click.

Thank you..

-Regards

snop21

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Clearing all textfields..! Help..!

Post by jmburnod » Sat Mar 15, 2014 9:17 pm

Hi,

Code: Select all

on mouseUp
   repeat with i = 1 to the num of cds
      repeat with u = 1 to the num of flds of cd i
         put empty into fld u of cd i
      end repeat
   end repeat
end mouseUp
Best regards
Jean-Marc
https://alternatic.ch

snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Clearing all textfields..! Help..!

Post by snop21 » Mon Mar 17, 2014 6:02 pm

HI mburnod ,

Thank you..! 8)

Regards

snop21

Post Reply