Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is available in OpenInsight 9.2 and above. It is currently a programmatic function only. The IDE does not currently have a tool to create and organize Modules.

Note: Always call the Get_Status function after calling Repository.

See also

Repository() functionSETMODULE methodADDMODULE methodREMOVEMODULE methodGETMODULE method

Example

 

Code Block
* Clear Module Names for an Entity
Declare Function Repository
* Create an array of entities to use Module methods against
reposStack  = ""
reposStack := @appid<1> : "*OIWIN**CUSTOMERS" : @fm
reposStack := @appid<1> : "*OIWINEXE**CUSTOMERS" : @fm
reposStack := @appid<1> : "*POPUP**CUSTOMERS"
moduleName = "CUSTOMER_INVOICE"
* Clear all Module names from the entities in reposStack
rPos = 0
rFlag = ""
module = ""
Loop
   Remove thisEntity From reposStack at rPos setting rFlag
      var = Repository( "CLEARMODULE", thisEntity )
      If Get_Status(ErrCode) then
         call msg(@window, 'Error Message returned: ' : ErrCode)
      end
   While rFlag
Repeat