> I am learning OOo Basic and UNO. I have run into a wall when it comes to
> documentation I can understand. So far the most outstanding example of
> this is an attempt to find information on the MakePropertyValue fuction.
The MakeProperty function is not part of OOo (at least I do not think that
it is included). One definition for it is as follows:
Function MakeProperty( Optional cName As String, Optional uValue ) As
com.sun.star.beans.PropertyValue
Dim oPropertyValue As New com.sun.star.beans.PropertyValue
If Not IsMissing( cName ) Then
oPropertyValue.Name = cName
EndIf
If Not IsMissing( uValue ) Then
oPropertyValue.Value = uValue
EndIf
MakePropertyValue() = oPropertyValue
End Function
First, it creates an object (well, a struct) of type PropertyValue. A
property value contains a name and an object of type variant (so it can
contain anything. If the name and/or value is included, then it is
included in the property. This is a fast way of creating a property value
and adding it to an array.
This is a time saving routine because it is easier to declare an array and
then use this to create property values than to create a properly
dimenstioned array of property values and fill them in.
> I did find some documentation on the OO site, but it just tells me what
> classes are inherited by the function. That might be enough for someone
> who is experienced, but it is not helpful to me.
>
> The specific question concerns this line:
>
> oCalcDoc = StarDesktop.loadComponentFromURL( cURL, "_blank", 0,_
> Array( MakePropertyValue( "FilterName", "Text - txt - csv
> (StarCalc)" ),_
> MakePropertyValue( "FilterOptions",
> "44,34,SYSTEM,1,1/10/2/10/3/10/4/10/5/10/6/10/7/10/8/10/9/10" ),_
> MakePropertyValue( "Hidden", True ) ) )
>
> Specifically, what is the entry in the second argument of the first
> instance of MakePropertyValue for? I am curious about the other
> possible uses of the function, but that is the first question that came
> to mind.
>
> Any help would be appreciated!
>
> Thanks,
>
> Jim Driggers
Does this help?
Andrew Pitonyak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]