C
C
CryptoPython2018-10-21 15:53:53
.NET
CryptoPython, 2018-10-21 15:53:53

How to change the value of a variable in resources?

Task: I need to save the password and login, for this I want to use resources, but when I try to insert a value into a variable there, it says that the type is only for reading, and you cannot change anything. What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2018-10-21
@mindtester

use a database or config files (in both cases it's good to think about security - use encryption, at least to protect against direct reading)
and resources were originally conceived as a way to store static things, such as default parameters, default markup, etc.

R
Rebel028, 2018-10-22
@Rebel028

To store application parameters that can be changed, they usually use not Resources but Settings (in Russian, actually, "parameters").
There, for example, you can store the size of your form window, the position of any elements, change this data and use it later when the application starts.
But, as already noted, it is better to store logins / passwords in other places

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question