FreeLibrary Function
Releases DLLs that were loaded by a Declare statement. A released DLL is automatically reloaded if one of its functions is called. See also: Declare
Sintaksis:
FreeLibrary (NamaPustaka As String)
Parameter:
NamaPustaka: Ekspresi string yang menentukan nama dari DLL.
FreeLibrary can only release DLLs that are loaded during Basic runtime.
Contoh:
Declare Sub MyMessageBeep Lib "user32.dll" Alias "MessageBeep" ( Long )
Sub ExampleDeclare
Dim lValue As Long
lValue = 5000
MyMessageBeep( lValue )
FreeLibrary("user32.dll" )
End Sub