https://bugs.documentfoundation.org/show_bug.cgi?id=92511

--- Comment #3 from vlad <[email protected]> ---
Ok,very well.The problem is not the method GetByName(it works nice),but
..mmm..to get by name from a collection.If we have something like:
ThisComponent.Sheets.GetByName("MySheetName") 
it returns the sheet "MySheetName",ok?
It is possible to take this sheet using the collections form,like
ThisComponent.Sheets("MySheetName"),because Sheets() is a collection of these
values,you can access  a value using the index,like your example,or using the
name,like main.
So,in my example I have used the name-call method,and it not works,because
returned always the same Form,the first one.
The method GetByName works fine:
ThisComponent.DrawPage.Forms.GetByName("NameOfForm") 
not work(for me ) the name-call method of collection:
ThisComponent.DrawPage.Forms("NameOfForm")
--------------------------------------------------------
I am not good in explanation and I do not know how to make a correct bug name.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to