if error message ... declare long ShellExecute in "shell32.dll" ; long hwnd, string lpszOp, ; string lpszFile, string lpszParams, ; string lpszDir, long nShowCmd ShellExecute(0,'Open',thisform.text9.Value,'','',1)thanks.
>>CLOSE all >>SET DATE BRITISH >>SET CENTURY on >>thisform.text9.Value=GETFILE('xls') >>IMPORT FROM (thisform.text9.value) TYPE XLS >> >>use JUSTSTEM(thisform.text9.value) >>m.t=JUSTSTEM(thisform.text9.value) >>USE (m.t) >> >>FOR gnCount = 1 TO FCOUNT( ) >> m.OldName = FIELD(gnCount) >> m.NewName = ALLTRIM(EVALUATE(FIELD(gnCount))) >>******************************** >>&&if syntax erorr(erorr 10) >> && messagebox("") >> &&exit >> &&else >>********************** >>ALTER TABLE (m.t) RENAME COLUMN (m.OldName) TO (m.NewName) >>(m.NewName) >>NEXT >>&&endif >>=MESSAGEBOX("DON") >>>>thanks