Shared Variabled

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
GILLETTD
Posts: 6
Joined: Tue Nov 05, 2013 6:10 pm

Shared Variabled

Post 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
Mark_Dale
Posts: 61
Joined: Thu Apr 19, 2012 11:06 am

Re: Shared Variabled

Post 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
Post Reply