MyChat Scripts Engine: mDBStorageDeleteKey, delete data from the database
Delete the data from the built-in database by the specified key.
Syntax
procedure mDBStorageDeleteKey(sKey: string);
Parameters and return values
Parameter |
Type |
Value |
sKey |
string |
text key for search. The letter case matters. |
The procedure works in any case with the key or without.
Example
const
TOTAL = 12;
var
i: integer;
sKey: string;
begin
mLogScript('Start deleting process...', '');
for i := 1 to TOTAL do begin
sKey := 'month_name_' + IntToStr(i);
mDBStorageDeleteKey(sKey);
end;
mLogScript('Done', '');
end.
Script work result
[20:07:31] (Log "DBStorageDeleteKey"): Start deleting process...
[20:07:31] (Log "DBStorageDeleteKey"): Done
[20:07:31] (Run "DBStorageDeleteKey"): Script operation time: 134 ms
[20:07:31] (Run "DBStorageDeleteKey"): Script done successfully.
See also
Created with the Personal Edition of HelpNDoc: Elevate Your Documentation Process with HelpNDoc's Advanced Features