On 2/1/08 18:24, "Chuck Pelto" <[EMAIL PROTECTED]> wrote:

> I'm having some 'fun' within Scriptmaker. 
> 
> Specifically, I'm trying to Set Field using Case.
> 
> The fields involved are globals; the field being set and the field from which
> the data is being pulled.
> 
> Here's the algor'm...
> 
> SetField (Projects::_holdthis (
> 
> Case ( Projects::_Layout = "This" ; This::RecordID ;
>  Projects::_Layout = "That" ; That::RecordID ;
>  Projects::_Layout  = "Other" ; Other::RecordID ;
> "Nada"
> )
> 
> What's happening is nothing is happening; _holdthis doesn't have anything in
> it after the step. This, in spite of the fact that Projects::_Layout has This,
> That or Other in it.
> 
> What's going wrong here? Is there something about Case or SetField that it
> won't deal with a global field? All fields are Global Text.

Are you CERTAIN that all these fields are globals? In particular, if
_holdthis is a global, then at very least you should get the result "Nada"
in there.

Have you tried taking out all the difficult stuff? I mean make a one-line
script which is something like:

Set Field (_holdthis ["Nada"])

If this don't work, then... Well I'd ask again if you are sure the field
_holdthis is a global :)

Steve

Reply via email to