Need to hide a field... should be easy non!

ListOfNames := Names_2 : Names _14: Names _5: Names _6: Names _9: Names _7;answer := !@Member( @Implode(ListOfNames) ; @Name([CN];@UserName));

@Prompt([Ok];“”;@Implode(ListOfNames));

@Prompt([Ok];“”;@Text(answer));

answer

I have a list of names ( about 10 names), I need to find out if the user is part of the list of Names…. With the @prompt I see the answer but I get 1 regardless of the user being in the list or not… I am using the prompt just to test, but in fact I am trying to hide or not a field , if the user is in the list then I want the field to show, otherwise hide the field…

Any ideas…?

Thanks

p.

Subject: Need to hide a field… should be easy non !!!

Hi Paul,

You shouldn’t need the @implode.

I think…

Andrew.

Subject: Need to hide a field… should be easy non !!!

thanks all… it worked…

Subject: Need to hide a field… should be easy non !!!

answer := !@IsMember( @Implode(@Lowercase(@Name([CN];ListOfNames)) ; @Lowercase(@Name([CN];@UserName)));

Subject: Need to hide a field… should be easy non !!!

TRy this:

ListOfNames := Names_2 : Names _14: Names _5: Names _6: Names _9: Names _7;

answer := @IsMember(@name([CN];@username);ListOfNames);

@Prompt([Ok];“”;@Implode(ListOfNames));

@Prompt([Ok];“”;@Text(answer));

answer

answer should be True (1) if the person’s common notes name matches one of the list.