Hi,

Mathias Bauer schrieb:

As an example for the second approach, we have some objects that offer
an API like:

n = MyObject.getPropertyValue( "PropName" )

Basic can automatically inspect this object and allows you to write

n = MyObject.PropName

Do we have an overview which simplifications are provided by OOBasic? Things that I currently know are:

obj.Property = value
instead of
obj.setPropertyValue( "Property", value )

value = obj.Property
instead of
value = obj.getPropertyValue( "Property" )

obj.Function = value
instead of
obj.setFunction( value )

value = obj.Function
instead of
value = obj.getFunction()

obj( i ) = value
instead of
obj.setByIndex( i, value )

value = obj( i )
instead of
value = obj.getByIndex( i )

and even

value = obj.Function( i )
instead of
value = obj.getFunction().getByIndex( i )      :-)


Regards
Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to