From cf6f0df5ad826b72513b2f1c465518bfe723c72e Mon Sep 17 00:00:00 2001 From: LibreOļ¬ƒciant Date: Tue, 24 Mar 2020 09:49:13 +0100 Subject: Fix to Property misleading snippet Change-Id: Ie96f829d21384a9adab81e9b007d0773c035b97c Reviewed-on: https://gerrit.libreoffice.org/c/help/+/90948 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/shared/01020300.xhp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/text/sbasic/shared/01020300.xhp b/source/text/sbasic/shared/01020300.xhp index 5db47968d9..e9f98e2833 100644 --- a/source/text/sbasic/shared/01020300.xhp +++ b/source/text/sbasic/shared/01020300.xhp @@ -71,18 +71,20 @@ Properties combine the syntax of procedures and functions. A property usually requires up to one parameter. + Private _IsApproved As TYPENAME Property Get IsApproved As TYPENAME ' your code goes here + IsApproved = some_computation End Property Property Let IsApproved(value As TYPENAME) ' your code goes here - IsApproved = computed_value + _IsApproved = computed_value End Property The Property is called using the following syntax: var = IsApproved - IsApproved = True + IsApproved = some_value You can also use the fully qualified name to call a procedure, function or property:
Library.Module.Macro()
For example, to call the Autotext macro from the Gimmicks library, use the following command:
Gimmicks.AutoText.Main()

Passing Variables by Value or Reference

-- cgit