On 30.08.1998 09:01:50 goccebbs@dimtel.nti.it (Giuseppe Chillemi) wrote:
> >> STEM..n (n = numentry) is an uninitialized element, fiasco should
> >> initialize it to the defaul value set for that field.
> >
> > Currently, these are ignored, the old contents remain the same.
>
> This is not what is stated in the Fiasco.guide
>
> "... if you use the CreateListEntries switch, this command will remove
> all old entries from the listview and replace them by the entries in the
> stem variable. "
If you use CreateListEntries. The descrition I made above, was in conjunction
with not using CreateListEntries.
> >> When we have connected LV, the number of entries of the other LVs should
> be
> >> adjusted to match the .COUNT value of the stem you are SETFIELDing so, if
> >> they have more entries, they should be deleted starting from the last, if
> >> they have less entries, new ones must be added and their content shoul be
> >> the default value the user has set for each field.
> >
> > I will probably add an argument that handles grouped listviews.
>
> I find the proposed approach for the 'CreateListEntries' is a good one and
> fullfills all the needing one may have fo a LV. Why (and where) you find
> the needing of another switch ?
Compability. However, I will have to do a little research in the Fiasco
sources in this issue.
> Summary:
>
> - .count sets the number of lines in a LV and the number of lines in all
> the connected LVs.
If CreateListEntries is specified
> - An uninitialized element in the range STEM..1 - STEM..count
> create a LV entry set to the default value.
Again if CreateListEntries is specified. Otherwise, it is IMO quite
useful if the old entry remains unchanged, if an element is
unititialized.
> ... -> Later addition:
>
> Or... Nils I have had another IDEA while observing the working of the
> Setfield command: actually there is no way to set a field to its
> predefined value. You may leave the actual 'CreateListEntries' working,
> (changeing only the .count one) and add another switch to 'Setfield' to let
> fiasco set a field to its predefined value when the corresponding compound
> simbol inside a stem is uninitialized or when the name of the field is
> given but not its value.
Predefined value = initial content?
Bye
--
Nils Bandener /// Now completely updated:
nils@dinoex.sub.org \XX/ http://www.amigaworld.com/support/fiasco/
nilsb@amigaworld.com
You can download the complete archive as Fiasco database here.