Storage Functions: Unterschied zwischen den Versionen
Aus EEP Handbuch
(Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPSave…“) |
(kein Unterschied)
|
Aktuelle Version vom 7. September 2018, 14:01 Uhr
| EEPSaveData() | EEPSaveData(Slot,Value|"String"|Boolean|nil) | |
|---|---|---|
| type: | function |
EEPSaveData(1, 42) -- store value
EEPSaveData(2, "I am slot 2") -- store string
EEPSaveData(3, true) -- store boolean
EEPSaveData(4, nil) -- delete
|
| caller: | script | |
| defined in: | EEP | |
| parameters: | two | |
| returns: | one | |
| requires: | EEP 11.0 | |
| purpose: | Permanent data storage. The saved data is stored in the same file as the user’s Lua program but isn’t visible in the EEP Lua editor. Prevents data loss when script is re-loaded | |
| notes: |
|
|
| EEPLoadData() | EEPLoadData(Slot) | |
|---|---|---|
| type: | function |
hResult, hData = EEPLoadData(1)
if hResult then
print("Slot 1 contains: "..hData)
else
print("Slot 1 is empty")
end
|
| caller: | script | |
| defined in: | EEP | |
| parameters: | one | |
| returns: | two | |
| requires: | EEP 11.0 | |
| purpose: | Loads contents from data slot. Use this function to restore data when you re-load your script. | |
| notes: |
|
|