NetTalk Central

Author Topic: Impossible to edit global variable from memory form  (Read 1321 times)

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Impossible to edit global variable from memory form
« on: May 21, 2012, 05:02:18 AM »
Hi,

It is impossible to edit global variable from a memory form. the entry field can´t show the value. no way to do this.

thanks
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Impossible to edit global variable from memory form
« Reply #1 on: May 21, 2012, 05:43:09 AM »
Hi Walter,

yes- there is a way.

Be aware that we're talking about an Unthreaded, Global variable here - so this variable will be used for _all_ users. This means it's usually some setting for the server itself, not some setting for a specific user.

the method is as follows;

a) add the field to the form, just like any other field.

b) in the form procedure, go to the RestoreMem routine, and set the SessionValue. For example;

  p_web.SSV('someGlobal',someGlobal)

Cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Impossible to edit global variable from memory form
« Reply #2 on: May 21, 2012, 06:23:06 AM »
:) it´s working...

thanks
Walter - SOFTVALE