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
Shared Variabled
Re: Shared Variabled
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
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