| View previous topic :: View next topic |
| Author |
Message |
caravas General User

Joined: 05 Sep 2011 Posts: 31
|
Posted: Thu Mar 01, 2012 5:33 am Post subject: [SOLVED] Load Libraries |
|
|
Well folks,
I have a small base database working only with standalone forms (writer documents). As a matter of fact, I need to protect the code of my macros from users and as solution I choosed to put my macros in a Library called "Library1" on every document and then set up a password, because doing this way instead of saving my macros on Application makes it more easy the set up on every machine, maintenance and distribution, so far so good.
The first Form loaded works nice, but, every time I open another form by macros called from the first one, the second one form doesn't load the "Library1" and none of the macros saved in there.
I tried to Load the missing library with the following code, wich is triggered by the event "OnWhenLoading" of every form:
| Code: |
Sub CarregaBiblioteca
BasicLibraries.LoadLibrary("Library1")
End Sub
|
I'll apreciate any help regarding this struggle! I'm kind of losted...
Thanks!
Last edited by caravas on Thu Mar 01, 2012 8:24 am; edited 1 time in total |
|
| Back to top |
|
 |
B Marcelly Super User

Joined: 12 May 2004 Posts: 1414 Location: France
|
|
| Back to top |
|
 |
caravas General User

Joined: 05 Sep 2011 Posts: 31
|
Posted: Thu Mar 01, 2012 8:26 am Post subject: |
|
|
Thank you so much! My liffe has meaning once more! |
|
| Back to top |
|
 |
|