Files
help/source/text/sbasic/shared/03131500.xhp
Olivier Hallot 4e20b30849 tdf#163745 BASIC help pages must explicitly state types of all arguments
+ refactor and tweaks

Change-Id: I39a88a35af32aac68e8ebfe566bce0fc927ceef3
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/184186
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2025-04-16 14:46:36 +02:00

81 lines
4.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<helpdocument version="1.0">
<meta>
<topic id="textsbasicshared03131500xml" indexer="include" status="PUBLISH">
<title id="tit" >CreateUnoStruct Function</title>
<filename>/text/sbasic/shared/03131500.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
</history>
</meta>
<body>
<section id="createunostruct">
<bookmark branch="index" id="bm_id3150499"><bookmark_value>CreateUnoStruct function</bookmark_value>
</bookmark>
<h1 id="hd_id3150499"><link href="text/sbasic/shared/03131500.xhp">CreateUnoStruct Function</link></h1>
<paragraph role="paragraph" id="par_id3150713" ><ahelp hid=".">Creates an instance of a Uno structure type.</ahelp></paragraph>
</section>
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<paragraph role="code" id="par_id3155341" >oStruct = CreateUnoStruct( UnoTypeName as String ) as Object</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functvalue"/>
<paragraph role="paragraph" id="par_id851677925987795">Object</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
<table id="tab_id611744667519485">
<tablerow>
<tablecell>
<paragraph id="par_id661744667519485" role="tablehead" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#param_name" markup="ignore"/></paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id631744667519485" role="tablehead" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#param_type" markup="ignore"/></paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id91744667519485" role="tablehead" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#param_desc" markup="ignore"/></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id181744667519485" role="tablecontent">UnoTypeName</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id711744667519485" role="tablecontent" localize="false">String</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id581744667519485" role="tablecontent">Name of the UNO structure.</paragraph>
</tablecell>
</tablerow>
</table>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<bascode>
<paragraph role="bascode" localize="false" id="par_id3149762">oStruct = CreateUnoStruct( "com.sun.star.beans.Property" )</paragraph>
</bascode>
<paragraph role="paragraph" id="par_id3147226" >Or use the following structure for your statement:</paragraph>
<bascode>
<paragraph role="bascode" id="par_id3149177" localize="false">Dim oStruct as new com.sun.star.beans.Property</paragraph>
</bascode>
<section id="relatedtopics">
<embed href="text/sbasic/shared/uno_objects.xhp#UnoObjects_h1"/>
</section>
</body>
</helpdocument>