D
D
Dmitry Cherezhonov2015-04-06 03:58:37
Delphi
Dmitry Cherezhonov, 2015-04-06 03:58:37

Is it possible to store the value of a variable in the software?

Hello.
After restarting the software, it is required to read data from the program, is it possible to save the value of a variable directly in the program itself? If it is impossible to save the value of a variable in the software, I would like to ask if there are any other ways to save data in the software itself? Tell me which way to dig.
Thank you.
PS I tried to search, I did not find it, maybe I did not formulate the question correctly.
PPS Initially, the value is not known, it must be written at startup and saved in the software.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Pukhov, 2015-04-06
@tvytszy

If it is the value of the variable that is meant and not any file of 100500 MB, then this is called a constant , in any programming language there is a place to be.

S
Sergey, 2015-04-06
@butteff

Data can be stored in files, in a database.
program variables while it is running are stored in RAM.
Dig in the direction of "working with files" or "Delphi database" or something like that.
In general, Delphi is far from being the best programming environment, there is almost no commercial development on it, there are at least a minimum of jobs. It's better to learn something else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question