Hey All - My simple macro below gives the error "Global within global not allowed" on the second "g" substitution. The remainder of the macro finishes without error. If I enter the commands manually in the same order they all succeed. Any idea what that error means?
Thanks!
_command Load_Table_Test() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
_macro('R',1);
ex_parse_and_execute('g/\[datetime/ s/$/ --was DATETIME/'); // <--SUCCEEDS
ex_parse_and_execute('g/\[float/ s/$/ --was FLOAT/'); // <--ERROR
ex_parse_and_execute('g/\[int/ s/$/ --was INT/'); // <--SUCCEEDS
ex_parse_and_execute('1,$ s/\[datetime\]/NVARCHAR(255)/');
ex_parse_and_execute('1,$ s/\[float\]/NVARCHAR(255)/');
ex_parse_and_execute('1,$ s/\[int\]/NVARCHAR(255)/');
ex_parse_and_execute('g/\[ntext/ s/$/ --NTEXT column has restrictions/');
}