assigne a filed with 2 values

assigne a filed with 2 values

am 12.01.2008 19:59:23 von Jimmy

Hi


I have a field "Object_types" displaying as Checkbox Set
using a list contains type_1, type_2, type_3...

and I want to assigne to "Object_types" with 2 values, I use :


SetField [Object_types; "type_1" , "type_2" ]

but there is a problem with "," "+" "|" ....

Which operator I must use ?

Thank you for your help

Re: assigne a filed with 2 values

am 12.01.2008 21:36:02 von Helpful Harry

In article <47890e0c$1_4@news.bluewin.ch>, "Jimmy"
wrote:

> Hi
>
>
> I have a field "Object_types" displaying as Checkbox Set
> using a list contains type_1, type_2, type_3...
>
> and I want to assigne to "Object_types" with 2 values, I use :
>
>
> SetField [Object_types; "type_1" , "type_2" ]
>
> but there is a problem with "," "+" "|" ....
>
> Which operator I must use ?
>
> Thank you for your help

Multiple data values in Checkbox formatted fields are separated by
Return characters, so the calculation would be:

Set Field [Object_types; "type_1" & "{Ret}" & "type_2"]

if using the & operator (needed when using other field's data instead
of text), or as simple text:

Set Field [Object_types; "type_1{Ret}type_2"]

where in both cases the {Ret} needs to be the 'backwards P' return
character that is on one of the buttons in the Define Calculation
window.

You can see what happens with Checkbox or Radio Button formatted fields
by duplicating the field on a Layout and changing one copy back to
normal formatting. Then any changes you make to the values in the field
(and leaving the field) will be displayed in the normal version.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

Re: [solved] assigne a field with multidata OK !

am 12.01.2008 22:05:54 von Jimmy

Thank you very much for your very quick
answer and your idea is excellent.
my problem is solved now.

Thank again


"Helpful Harry" wrote in message
news:130120080936025088%helpful_harry@nom.de.plume.com...
>
> Multiple data values in Checkbox formatted fields are separated by
> Return characters, so the calculation would be:
>
> Set Field [Object_types; "type_1" & "{Ret}" & "type_2"]
>
>
> Helpful Harry
> Hopefully helping harassed humans happily handle handiwork hardships ;o)