To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=91220
------- Additional comments from [EMAIL PROTECTED] Tue Jul 1 08:52:13 +0000
2008 -------
-> fs
Remember that Basic already accepts a shortcut to .getByName :
oSheet = ThisComponent.Sheets.getByName("prettyName")
' -- or --
oSheet = ThisComponent.Sheets.prettyname
Some people already use this shortcut (but I don't like it). Notice that the
element
name is not case sensitive with this method.
The introduction of container("elementName") could be useful in a VBA mode. In
a pure
OOoBasic mode you have to be aware of possible conflict with container(index)
method.
Currently you can do:
oSheet = ThisComponent.Sheets(1)
oSheet = ThisComponent.Sheets("1") ' string is converted to a number,
perfectly licit
And there is the common error :
oSheet = ThisComponent.Sheets("Feuille1") ' converts to zero, and gets
Sheets(0)
without error
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]