B4R Question Persistent variable

daveinhull

Member
Licensed User
Hi,

How would I save a variable value across power off. If I simply don't initialise it will it just have the previous value? However, for the first time how would I detect that it has not been given a value.

I would like to set a value from my android over Bluetooth using B4a, but have this value stored permanently until I connect again and send another value.

Any help would be appreciated.
Dave
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
If I simply don't initialise it will it just have the previous value?
No.

 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
RTC-memory is also actual (at least for ESP-controllers)
 
Upvote 0
Top