Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

variable fixed

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I am not familiar with static variable and I don't know that I need them for the following.

A variable can be initialised with a fixed value (eg. 1) or can get a value the first time it is used (eg from a text box).

I need a variable that maintain his last value. eg. if database is opened 10 times then give msgbox.
 
I would store the value you want for the variable in the DB and set/retrieve it from there.

That will allow you to persist a value you can assign to the variable when the application isn't open.

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
ok,

how to avoid that you can reset this (when its in a table ?)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top