It has come to our attention that the list of reserved keywords sometimes called tokens is out of date in the documentation.
Many MapBasic language keywords, such as Open, Close, Set, and Do, are reserved words which may not be used as variable name, table name or column name . If you attempt to define a variable called Set, MapBasic will generate an error when you compile the program. The table below summarizes the MapBasic keywords which may not be used as variable names.
Here is the complete list:
add;alter;autolabel;beep;begin_metadata;browse;call;close;commit;continue;create;ddeexecute;ddepoke;ddeterminate;ddeterminateall;declare;delete;dialog;dictionary;dim;do;drop;else;elseif;end;end_metadata;error;event;exit;export;farthest;fetch;find;fme;for;function;geocode;get;global;goto;graph;if;import;input;insert;kill;layout;line;map;menu;metadata;midebug;nearest;note;objects;onerror;open;pack;print;printwin;progressbar;put;randomize;redim;refresh;register;relief;reload;remove;rename;reproject;resultcode;resume;rollback;run;save;seek;select;server;set;shade;statusbar;stop;sub;terminate;type;undim;unlink;update;wfs;while;write;writeaccess
In addition, I will be adding a new SessionInfo() attribute to return this list in case there are additions in the future.
-Bob
------------------------------
Bob Fortin
Software Architect and Distinguished Engineer
MapInfo Pro Development Team
------------------------------