Defining servervariables

James Rea jim at provue.com
Tue Mar 18 22:09:22 PDT 2008


> How is a servervariable defined in an initialize procedure without  
> changing the value if it has already has one? When I leave the formula  
> blank and put a value in the initial value parameter, the stored value  
> is erased.

You can't leave the formula blank -- that tells it to erase the value!

I think this is what you want to do.

setservervariable "",SomeVariable,SomeVariable,"Initial Value"

Keep in mind that this is going to slow down your initialize procedure
somewhat, since it will have to contact the server to do this every
time. Kind of a waste since it is only doing something the first time.
If you can come up with a way to do this only once when you first set up
the database, instead of every time you .Initialize, that would be
better.

Jim Rea
President, ProVUE Development

---------------------------------------------------------------------
---   Celebrating 29 years of software excellence (1978-2007)     ---
---------------------------------------------------------------------
ProVUE Development          (714) 841-7779
18685-A Main Street PMB356  http://www.provue.com/
Huntington Beach, CA 92648  Panorama: Turn information into knowledge
---------------------------------------------------------------------


More information about the Qna mailing list