[dev] question about oDatabaseContext.getElementNames()

2010-02-23 Thread Oliver Brinzing
Is it correct, that oDatabaseContext.getElementNames() will return the 
displayed name
(shown in database brwoser)  and not the registered Name shown in Tools - 
Options ?

for example the macro below will return My Database, not mydatabase

node oor:name=RegisteredNames
node oor:name=My Database oor:op=replace
prop oor:name=Location oor:type=xs:string
valuefile:///X:/MyDatabase.odb/value
/prop
prop oor:name=Name oor:type=xs:string
valuemydatabase/value
/prop
/node
/node


OPTION EXPLICIT
Sub Test()

Dim oDatabaseContext as Object
Dim oNames()
Dim s as String
Dim i as Integer

oDatabaseContext = createUnoService(com.sun.star.sdb.DatabaseContext)

oNames = oDatabaseContext.getElementNames()

For i = 0 To UBound(oNames())
s = s  Chr(13)  oNames(i)
Next i

MsgBox s
End Sub

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature


Re: [dev] assertion failure

2010-02-23 Thread Terrence Enger
On Thu, 2010-02-11 at 10:16 +0100, Stephan Bergmann wrote:
 On 02/11/10 03:11, Terrence Enger wrote:
  Let me pick on the first assertion which failed, and one which is
  failing quite regularly.  It is ...
  Error: seekEntry(): Bad map
  From File 
  /home/terry/OOo_hacking/DEV300_m71/svl/source/misc/inettype.cxx at line 818
 Now addressed by 
 http://www.openoffice.org/issues/show_bug.cgi?id=109146.

How can I--or similarly situated newbies--contribute?  Particularly, how
should I go about creating test cases?  In other words where should I
start reading?

Cheers,
Terry.



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org