Syntax

Path = SRP_Mobile_Repository(CtrlEntID, 'DetachMobileRepository', Path, LoadOption)

Returns

If successful the path to the mobile repository just detached, otherwise 0.

Parameters

ParameterDescription
PathDirectory path where the mobile repository is located.
LoadOptionFlag to determine how the RTP27 SSP should be used or even if it should be used at all. Valid options are ‘Now’, ‘Later’, and ‘Skip’. Default value is ‘Later’. See Remarks for more information.

Remarks

Detaching a mobile repository causes OpenInsight to cease using entities that are located in the designated path.

When a mobile repository path is detached then RTP27 (OpenInsight’s program loader) needs to be called to refresh the program stack cache. Otherwise, procedures the mobile repository version of each procedure will still be called using the cache. Please see the Remarks for AttachMobileRepository for more information.

It generally recommended that the corresponding AttachMobileRepository method use the same value for LoadOption.

Examples

// Attempt to detach the mobile repository located in 'C:\MobRep'. Allow the  
// LoadType argument to set to the default value of 'Later'  
Path = SRP_Mobile_Repository(CtrlEntID, 'DetachMobileRepository', 'C:\MobRep')
  • No labels