Page 1 of 1

Shared Variabled

Posted: Tue Dec 03, 2013 7:30 pm
by GILLETTD
Hi,

I was just wondering what's the difference between #com_owner.SharedStates<'SomeName'> := something and #Com_Owner.Set_SharedState Variablename('SomeName') value(something) ?

Any help is much appreciated

Cheers,

Dominique

Re: Shared Variabled

Posted: Wed Dec 04, 2013 8:40 am
by Mark_Dale
The two are very similar.

You can see how Set_SharedState works, the source for LRNG_FORM.

Mthroutine Name(Set_SharedState) Help('Saves the value of a shared state string variable.')
Define_Map For(*input) Class(#Prim_alph) Name(#VariableName)
Define_Map For(*input) Class(#Prim_alph) Name(#Value)

* Add the value to the Shared State property

#COM_OWNER.SharedStates<#VariableName.Trim()> := #Value

Endroutine