• Welcome, Guest. Please login.
 
April 16, 2021, 08:56:27 AM

News:

Welcome to the SQLitening support forums!


Using slSetRelNamedLocks

Started by Fim, December 16, 2020, 06:13:20 AM

Previous topic - Next topic

Fim

Is there any way to find out what locks I have made with slSetRelNamedLocks?
/Fim W.
Fim W

cj

December 16, 2020, 01:15:11 PM #1 Last Edit: December 16, 2020, 01:37:33 PM by cj
FUNCTION GetLockNames AS STRING
 'connect and open database before call
 LOCAL s1,s2 AS STRING, x AS LONG
 s1 = slGetStatus(1)
 IF LEN(s1) = 0 THEN EXIT FUNCTION
 REPLACE $VT WITH "," IN s1
 REPLACE $BS WITH "," IN s1
 FOR x = 2 TO PARSECOUNT(s1) STEP 8
  s2 = s2 + PARSE$(s1,x) + ","
 NEXT
 FUNCTION = LEFT$(s2,-1)
END FUNCTION

Fim

Many thanks. I should have read the manual better.
/Fim W.
Fim W

Fim

How about this in SQlitening.bas
Fim W

Fim

Thanks for the advice and instructions. But I have decided to go another way to solve my problem, and it has gone well
Fim W