From 87ab46fd2271fcf09ffc8a94bc403c3cf7082752 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 18 Mar 2022 08:14:43 +0100 Subject: [PATCH] Fix service name Change-Id: I3f8fcc74afe4ed64c64a5ee8beb41fe289ec7763 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131604 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- source/text/sbasic/shared/03132300.xhp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/text/sbasic/shared/03132300.xhp b/source/text/sbasic/shared/03132300.xhp index e405a5a3e0..0a490c7a38 100644 --- a/source/text/sbasic/shared/03132300.xhp +++ b/source/text/sbasic/shared/03132300.xhp @@ -39,7 +39,7 @@ The $[officename] API frequently uses the Any type. It is the counterpart of the Variant type known from other environments. The Any type holds one arbitrary Uno type and is used in generic Uno interfaces. oUnoValue = CreateUnoValue( "[]byte", MyBasicValue ) ' to get a byte sequence. -If CreateUnoValue cannot be converted to the specified Uno type, and error occurs. For the conversion, the TypeConverter service is used. +If CreateUnoValue cannot be converted to the specified Uno type, and error occurs. For the conversion, the com.sun.star.script.Converter service is used. This function is intended for use in situations where the default Basic to Uno type converting mechanism is insufficient. This can happen when you try to access generic Any based interfaces, such as XPropertySet::setPropertyValue( Name, Value ) or X???Container::insertBy???( ???, Value ), from $[officename] Basic. The Basic runtime does not recognize these types as they are only defined in the corresponding service. In this type of situation, $[officename] Basic chooses the best matching type for the Basic type that you want to convert. However, if the wrong type is selected, an error occurs. You use the CreateUnoValue() function to create a value for the unknown Uno type. You can also use this function to pass non-Any values, but this is not recommend. If Basic already knows the target type, using the CreateUnoValue() function will only lead to additional converting operations that slow down the Basic execution.