Magic User Group

Magic Wiki-Wakka : StoreGlobalParms

HomePage :: CATEGORIES | Index :: Changes :: Comments :: Search :: Login/Register
CategoryHowTo

Store and Read Global Parameters

Often we have to get global parameters changed only by the developer. Traditionally we store it in a parameter file and link. The disadvantage are links in many programs and partly locking problems.

Solution

  1. Build a file with two fields: key and value.
  2. Fill the records only as developer
  3. Write a programme that read this file

Load at runtime start (application Properties=start program)
Record Main
Select Real key (A)
Select Real value (B)

Records Suffix
Evaluate SETPARAM (A,B)


To read the constants at programmes use:
GETPARAM ('KEY')


... to be continued


Categories
CategoryHowTo

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki trunk
Page was generated in 0.0487 seconds