Delete data of all fields in a special group?

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
3d-swiss
Posts: 39
Joined: Thu Nov 06, 2008 9:11 pm

Delete data of all fields in a special group?

Post by 3d-swiss » Thu Apr 12, 2012 4:05 pm

Hello again,

I like to have a very quick way to 'put empty' in all fields of a special group:

Code: Select all

put empty into all fields of group "InputFields" -- Perhaps this is possible in the future
How can it solved with todays LiveCode?

Thanks for reading.
Jens

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

Re: Delete data of all fields in a special group?

Post by jmburnod » Thu Apr 12, 2012 4:18 pm

Hi,

Try this

Code: Select all

on mouseUp
   put the num of flds of group "MyGroup" into nbF
   repeat with i = 1 to nbF
      put "" into fld i of group "MyGroup" 
      wait 1 milliseconds
   end repeat
end mouseUp
Best

Jean-Marc
https://alternatic.ch

3d-swiss
Posts: 39
Joined: Thu Nov 06, 2008 9:11 pm

Re: Delete data of all fields in a special group?

Post by 3d-swiss » Thu Apr 12, 2012 4:36 pm

Hello Jean-Marc,

thanks. Work perfect.

I missed that information in the Dictonary. There is no entry about 'field of group', is it?

Greetings from Switzerland
Jens.

[Case closed]

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

Re: Delete data of all fields in a special group?

Post by jmburnod » Thu Apr 12, 2012 4:43 pm

Hi Jens,
I missed that information in the Dictonary. There is no entry about 'field of group', is it?
Yes. You're right.
You can look at the lessons space on the runrev site.

Best from Geneva in Switzerland

Jean-Marc
https://alternatic.ch

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

Re: Delete data of all fields in a special group?

Post by Klaus » Thu Apr 12, 2012 5:17 pm

Hi Jens,
3d-swiss wrote:...I missed that information in the Dictonary. There is no entry about 'field of group', is it?
no there isn't, but don't be so "pingelig"! :lol:

Post Reply