Edit

GetPersistent (table, key1, key2)

Result Type:  Boolean (0 or 1)

Definition:  Loads values from a record in one of the user-definable persistent storage tables ("user", "user2", "lists", and "offledger"). Returns an associative array that contains the field values keyed by the field names (does not include they keys—you already know those).

Example

on Load
    if GetMutex("rate_update")
        let values = GetPersistent("user2", kMyDevKey, "last_update")
        if values["date1"] < Today() - 7

            GetRates()    // do weekly thing

            let values["date1"] = Today()
            SetPersistent("user2", kMyDevKey, "last_update", values)
        endif
        ReleaseMutex("rate_update")
    endif
end

See Also:

SetPersistent: Create or update a user table record using data in an associative array