LibreOffice 7.1 Help
āĻāĻāĻāĻŋ āĻŦāϏā§āϤ⧠āĻĒā§āϰāĻĻāĻžāύ āĻāϰ⧠āϝāĻž Uno āĻāĻžāĻāĻĒ āĻĒāĻĻā§āϧāϤāĻŋāϤ⧠āĻāϞā§āϞā§āĻāĻŋāϤ āϏāĻ āĻŋāĻāĻāĻžāĻŦā§ āĻāĻžāĻāĻĒāĻā§āϤ āĻŽāĻžāύā§āϰ āϏā§āϏā§āĻĒāώā§āĻ āĻŦā§āϝāĻžāĻā§āϝāĻž āĻĒā§āϰāĻĻāĻžāύ āĻāϰā§āĨ¤
Uno āϤ⧠āĻĒāĻžāϏ āĻāϰāĻžāϰ āϏāĻŽā§ āĻŦāϏā§āϤā§āĻāĻŋ āϏā§āĻŦāϝāĻŧāĻāĻā§āϰāĻŋāϝāĻŧāĻāĻžāĻŦā§ āϏāĻāĻļā§āϞāĻŋāώā§āĻ āĻāĻžāĻāĻĒā§āϰ Any āĻāĻžāĻāĻĒā§ āϰā§āĻĒāĻžāύā§āϤāϰāĻŋāϤ āĻšāĻŦā§āĨ¤ āĻāĻžāĻāĻĒāĻāĻŋ āĻ āĻŦāĻļā§āϝāĻ āĻāϰ āϏāĻŽā§āĻĒā§āϰā§āĻŖ āϝā§āĻā§āϝāϤāĻž āϏāĻŽā§āĻĒāύā§āύ Uno āĻāĻžāĻāĻĒ āύāĻžāĻŽā§ āĻāϞā§āϞā§āĻ āĻāϰāϤ⧠āĻšāĻŦā§āĨ¤
LibreOffice API āĻĒā§āϰāĻžāϝāĻŧāĻ Any āĻāĻžāĻāĻĒ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻāϰ⧠āĻĨāĻžāĻā§āĨ¤ āĻāĻāĻāĻŋ āĻ āύā§āϝ āĻāύāĻāĻžā§āϰāύāĻŽā§āύā§āĻ āĻĨā§āĻā§ āĻā§āϝāĻžāϰāĻŋāϝāĻŧā§āύā§āĻ āĻāĻžāĻāĻĒā§āϰ āĻĒā§āϰāϤāĻŋāϰā§āĻĒāĨ¤ Any āĻāĻžāĻāĻĒ āĻāĻāĻāĻŋ āĻ āϝā§āĻā§āϤāĻŋāĻ Uno āĻāĻžāĻāĻĒ āϧāĻžāϰāĻŖ āĻāϰ⧠āĻāĻŦāĻ āϏāĻžāϧāĻžāϰāĻŖ Uno āĻāύā§āĻāĻžāϰāĻĢā§āϏ⧠āĻŦā§āϝāĻŦāĻšā§āϤ āĻšāϝāĻŧāĨ¤
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.
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 LibreOffice Basic. The Basic runtime does not recognize these types as they are only defined in the corresponding service.
In this type of situation, LibreOffice 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.