Unlock
Unlocks a locked object for read/write data access. Unlock will remove protection completely, regardless of the type of locking. (Implemented only for WorksheetLayer, WorksheetPage, and Project Objects)
BOOL Unlock( LPCSTR lpcszPassword, DWORD dwCtrl = 0 )
returns non zero if successfull else 0;
EX1
void wksunlock(string strPass = "CP") { Worksheet wks = Project.ActiveLayer(); DWORD dwBits = 0; if(wks) { wks.Unlock(strPass, dwBits); printf("Worksheet %s is unlocked\n", wks.GetName()); } }
OriginObject::Lock, OriginObject::GetLock
origin.h