Emil Tchekov wrote:
Hi,
I am newby in OO Programming, but have good skills in VBA.
Now I am trying to change to Base (from M$ Access).
I was allready able to write some small makros in OO Basic (Dialogs, Events
etc.)
But I was not able to find a way to get/set Properties in the DB Form (it is
Writer Document and not "standard" Dialog...)
I want to Generate unique Primary key from the user input (it is very easy
in Access).
As example: User inputs Name, Surname and Postal code -> event driven
Procedure gets with LEFT() the first 2 chars from name and surname adds "-"
and the Postal code - (so we get sth. like "EmTc-12345") and than put this
sting into the Primary Key field ...
So what I need is the way to read/write to the appropriate text fields in
the form...
Does anybody can provide an example how to access a text field in a db
(writer) form?
Thank you very much in advance
Best Regards
Emil Tchekov
P.S. Very usefull will be also to have a way to hide the navigation bar
until the user is inputing the "sensitive data", so he can not switch to
another record until needed data (name & Postal code) is evaluated (Primary
key is generated).
I think that I already said this on the users list, but look at chapter
8 of my free macro document. Must sleep now...
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info: http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]