User-Defined Functions
பயனர்-வரையறுத்த செயலாற்றிகளை நீங்கள் LibreOffice கல்க் ஆவணத்தில் பின்வரும் வழிமுறைகளில் பயன்படுத்தலாம்.
-
You can define your own functions using the Basic-IDE. This method requires a basic knowledge of programming.
-
You can program functions as add-ins. This method requires an advanced knowledge of programming.
Defining A Function Using LibreOffice Basic
-
Choose
. -
Click the Edit button. You will now see the Basic IDE.
-
Enter the function code. In this example, we define a VOL(a; b; c) function that calculates the volume of a rectangular solid with side lengths a, b and c:
Function VOL(a, b, c)
VOL = a*b*c
End Function -
அடிப்படை- IDE சாளரத்தை மூடு.
Your function is automatically saved in the default module and is now available. If you apply the function in a Calc document that is to be used on another computer, you can copy the function to the Calc document as described in the next section.
Copying a Function To a Document
In stage 2 of "Defining A Function Using LibreOffice Basic", in the Macro dialog you clicked on Edit . As the default, in the Macro from field the My Macros - Standard - Module1 module is selected. The Standard library resides locally in your user directory.
If you want to copy the user-defined function to a Calc document:
-
Choose
. -
பெருமத்திலிருந்து புலத்தில் என் பெருமங்கள் - செந்தரம் - நிரல்கூறு 1 ஐத் தேர்ந்தெடுத்து தொகு ஐச் சொடுக்குக.
-
In the Basic-IDE, select the source of your user-defined function and copy it to the clipboard.
-
Close the Basic-IDE.
-
Choose
. -
பெருமத்திலிருந்து புலத்தில் என் பெருமங்கள் - செந்தரம் - நிரல்கூறு 1 ஐத் தேர்ந்தெடுத்து தொகு ஐச் சொடுக்குக.
-
Paste the clipboard contents in the Basic-IDE of the document.
Applying a User-defined Function in LibreOffice Calc
Once you have defined the function VOL(a; b; c) in the Basic-IDE, you can apply it the same way as the built-in functions of LibreOffice Calc.
-
கல்க் ஆவணத்தைத் திறப்பதோடு A1, B1, மற்றும் C1 கலங்களிலுள்ளa, b, மற்றும் c போன்ற செயலாற்றி அளவுருக்களுக்கான எண்களை உள்ளிடுக.
-
Set the cursor in another cell and enter the following:
=VOL(A1;B1;C1)
-
The function is evaluated and you will see the result in the selected cell.