Page 1 of 1
					
				empty many fields in card
				Posted: Mon Dec 02, 2013 6:00 pm
				by vedus
				it is possible to empty all the fields in the card without need to do for every one fld?
Code: Select all
put empty into fld "1"
put empty into fld "2"
....
i have look in the forum but i don't find anything similar to this "field & empty is common worlds for search: 

thank you
 
			
					
				Re: empty many fields in card
				Posted: Mon Dec 02, 2013 6:16 pm
				by Mark
				Hi,
Assuming that you only want to empty editable fields:
Code: Select all
repeat with x = 1 to number of fields
  if not the lockText of fld x then
    put empty into fld x
  end if
end repeat
Kind regards,
Mark
 
			
					
				Re: empty many fields in card
				Posted: Mon Dec 02, 2013 6:21 pm
				by bangkok
				Or could use a custom property (via the object inspector), leaving the possibility to have both, fields to be erased and fields content to be kept.
Code: Select all
repeat with i = 1 to the number of flds of this cd
if the toBeErased of fld i is true then put empty into fld i
end repeat
 
			
					
				Re: empty many fields in card
				Posted: Tue Dec 03, 2013 1:57 pm
				by vedus
				Mark wrote:Hi,
Assuming that you only want to empty editable fields:
Code: Select all
repeat with x = 1 to number of fields
  if not the lockText of fld x then
    put empty into fld x
  end if
end repeat
Kind regards,
Mark
 
thank you mark,that fixed my problem 
