Hi Alan,

A few minutes ago I posted my own temporary solution in message
"finally: effective vis"
before I was able to look at the Metacard digest 196 and your message.

There are some similarities  in our solutions, among them breaking the
consecutive number
of "ofs" either by using brackets or by using more than one script line
in formulating the
condition.

I am still not sure, why

 "if word 1 of the owner of fld j of cd i of the topstack is "group" and
the vis of the owner of fld j of cd i of the topstack is "false" then
..."

produces an error message - if the number of "ofs" should not be the
cause.

Anyway, there are workarounds.

Thanks very much for the detailed suggestions. I will try the scripts
and alternatives,
your compact "easiest way" of a script is very convincing.

Regards,

Wilhelm


> Hi Wilhelm, no this is not a bug.
>
> If you know that all of your groups have names set on them (i.e. not "group
> id xxxx") then you could get round this with:
>
> put return & the vis of group (char 2 to -2 of word 2 of the owner of fld j
> of cd i of the topStack) of cd i of the topStack after last line of
> SearchResult
>
> In the above line, first we specify where fld j is (of cd i of the topStack)
> but then we go on to say where the owner is (of cd i of the topStack). Also
> the group is referred to by actually using the word "group" and then by
> extracting the name of the group - this is instead of using the previous
> method in combination with a "do" statement.
>
> However, the overall easiest way would probably be:
>
>   set the defaultStack to the topStack
>   put the owner of fld j of cd i into tGroup
>   if word 2 of tGroup is "id" then put return & the vis of group id (word 3
> of tGroup) of cd i after last line of SearchResult
>   else put return & the vis of group (char 2 to -2 of word 2 of tGroup) of
> cd i after last line of SearchResult
>
> This directly queries the visibility of the group after finding out how to
> refer to it. So you can use it with groups regardless of whether they have a
> names set on them.
>
> Cheers,
>
> Alan
>
> Alan Beattie <[EMAIL PROTECTED]> <http://www.runrev.com/>
>


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to