Click or drag to resize
CDBiCanOpenReadOnly Method
This method checks whether it is possible to open a database in read-only mode.

Available since Oasis montaj version: 6.4.2
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNet
Assembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
This method is useful to determine if another session already locked a database. By using this method before an OpenReadOnly_DB a GX may handle errors like this more gracefully.
Syntax
public static int iCanOpenReadOnly(
	string str1,
	string str2,
	string str3
)

Parameters

str1
Type: SystemString
name of the Database File to Open
str2
Type: SystemString
Name of the user ("SUPER" normally)
str3
Type: SystemString
Password of the user ("" normally)

Return Value

Type: Int32
See GEO_BOOLConstant
See Also