Ahhh.. I can't thank you enough!! I was trying to create my own database editor, and it was a hell of an annoyance! But this... this is so incredible and simple, thank you!
A suggestion, though.
db_column_get_name/type/default()
Would make your example better, for example your example can do
var exe;
exe = "db_entry_add(" +string(table)+ ", " +string(db_column_count(table))+ ", ";
for(a=0;a<db_column_count(table);a+=1)
{
if(db_column_get_type(table, a)==0)
{
exe+= string(get_integer(db_column_get_name(table, a),db_column_get_default(table, a)));
}
else
{
exe+= '"'+get_string(db_column_get_name(table, a),db_column_get_default(table, a))+'"';
}
if(a<db_column_count(table)-1)exe+=", ";
else exe+=")";
}
execute_string(exe);EDIT: Never mind, they seem to already be in there

I think you should make them function-colored or whatever, they're very useful

I'm not even gonna bother making a new editor, I'm just going to use yours right now cause it's so user-friendly! THANKS AGAIN!
EDIT2: There seems to be a bug where decimal values won't be saved. :s
Edited by brod, 27 November 2009 - 04:53 AM.