Hi Mechtilde,
> Ich versuche ein Formatiertes Feld als "Prozent" zu formatieren.
geht über die Eigensschaften des /model/
[aus dem Zusammenhang gerissen...]:
oFormattedField = oDialog.getControl("FormattedField1")
oFormattedFieldModel = oFormattedField.getModel()
Dim aLocale As New com.sun.star.lang.Locale
oFormats = ThisComponent.NumberFormats
nFormatKey = oFormats.queryKey( "-0%", aLocale, True )
' 44% Zuschlag oder -33% Abschlag vorgegeben
With oFormattedFieldModel
.EffectiveMax = 0.4
.EffectiveMin = -0.33
.FormatKey = nFormatKey
End With
Hilft das weiter?
Cheers
Winfried
--
re-Solutions.de Software Test Engineering Mainz Germany Europe
meine OOo Seiten: http://www.re-solutions.de/ooo/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]