Auto-remove blank lines in a list field
Geoff Canyon
gcanyon at inspiredlogic.com
Mon Apr 8 19:20:01 EDT 2002
At 2:07 PM -0400 4/8/02, Tariel Gogoberidze wrote:
>> >I have a list field and I am trying to write a script
>> >that upon "closeField" (or something appropriate),
>> >will automatically check each line in the field and
>> >remove/delete any blank lines in the list field;
>> >
>>
>> on closeField
>> filter me with "?*"
>> end closeField
>> --
>>
>> regards,
>>
>> Geoff Canyon
>> gcanyon at inspiredlogic.com
>
>
>What's the advantages of using filter with "?*" as opposed to just
>filter with "*" to remove empty lines?.
>Filter with "*" always worked fine for me but I would love to know if
>filter with "?*" gives some additional advantages
>Thanks
>T.G.
Interesting -- Since * matches zero or more of any character, I would have thought that "*" would match the empty string, and thus wouldn't filter anything. It appears I was mistaken.
--
regards,
Geoff Canyon
gcanyon at inspiredlogic.com
More information about the use-livecode
mailing list