Contents

# Declare Statement

LibreOffice Basic giddonni kalaqa hasiratto DLL fayle giddo cinaancho biddissa egensiisanno, hattono tiranno.

Hattono: FanoMine la'i

### Syntax:

    Declare {Sub | Function} Name Lib "Libname" [Alias "Aliasname"] [Argumentlist] [As Type]

### Parameters:

Su'ma: LibreOffice Basic giddonni cinaancho biddissa abbate DLL giddo tiraminohunni roore baxxino su'ma.

BaxisoSu'ma: Cinaancho biddissa DLL giddo tiraminohu gede.

LibSu'ma: DLL fayle woy amuraatu su'ma. Kuni pirogiraamete mini assishsha horonsi'nanni yannara umisinni hogowamanno.

TidhoteDirto: Aantete sa'anno tidhuwa wobe sa'anno eishshuwate dirto. Eishshuwate daninna kiiro loosantino aante irkidhanno.

Dana: Assishshu aantenni higgino hornyo daatu dana tiranno. Konne eishsha danu-egensiishaanchi fikiima su'mu gedensaanni e'uro badde gatisa dandaatto.

Maqishshu darga eishsha cinaancho biddissa wido hornyote gede sayisate, eishshu ByValqaraqaalinni lellama hasiisannosi.

### Example:

    Declare Sub MyMessageBeep Lib "user32.dll" Alias "MessageBeep" ( Long )
    Sub ExampleDeclare
    Dim lValue As Long
        lValue = 5000
        MyMessageBeep( lValue )
        FreeLibrary("user32.dll" )
    End Sub

## Example 2

      REM When passing arrays by reference, do not specify the type of its elements.
      Declare Function GetDiag Lib "C:\\...\\Math.dll" _
         Alias "GetDiag" ( _
         ByVal varName As String, _
         A, _
         ByVal len As Long, _
         ByVal FunctionName As String, _
         B, _
         C) As Long
    Sub MyCode
      Dim A(100) As Long, B(100) As Long, C(100) As Long ' arrays
      R = GetDiag("f", A, 100, "g", B, C)
      Print R
    End Sub

Please support us!