OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Val of globally declard variable is lost after closing file

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
AYAZ
General User
General User


Joined: 31 Oct 2007
Posts: 5
Location: mumbai India

PostPosted: Sat Nov 17, 2007 3:29 am    Post subject: Val of globally declard variable is lost after closing file Reply with quote

I have created a password dialog box.it also facilitates the user to change the password .for tat he have to enter old password ,if correct, then then new password, then confirm new password and then the password is set .for this total 4 dialog box are created and called from one another. the common variable between password is declared global.
since the dialog takes the password from the user , so the value of global variable is not declared any where in the macro.
every thing works fine.ie;it takes new password,sets it,then on request changes it.
but once the file is closed the value of global variable is lost.then once again new value of the password needs to be entered .it dosent take the previously set value.
so is there any option tat the value can be regaind
any other option of taking the password from the user and reusing it is also welcomed
Back to top
View user's profile Send private message Yahoo Messenger
ms777
Super User
Super User


Joined: 07 Feb 2004
Posts: 1355

PostPosted: Sun Nov 18, 2007 3:18 am    Post subject: Re: Val of globally declard variable is lost after closing f Reply with quote

AYAZ wrote:
...so is there any option tat the value can be regaind

no

AYAZ wrote:
...so is there any option tat the value can be regaind

writing to (Configuration)file and re-reading
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group