I have an operation in an .a5w page that I adapted from the generated Xbasic on the desktop side. It runs fine on the desktop, but it throws the following error when run from the .a5w page:
'The filename, directory name, or volume label syntax is incorrect. .DDD'
Here is the code in the a5w page:
and here is the code from the desktop script that works:
Any Ideas?
'The filename, directory name, or volume label syntax is incorrect. .DDD'
Here is the code in the a5w page:
Code:
Dim table_to_mark as c table_to_mark = "[pathalias.adb_path]\newitems" current_filter = ".T." if table.in_use(table_to_mark) then err = "Table is in use: cannot mark '" + table_to_mark + "'" Goto ERRORchkNewItems else ON ERROR GOTO ERRORchkNewItems a_tbl = table.open(table_to_mark) a_tbl.mark_dups2("Serial_Num") a_tbl.close() end if GOTO CONTINUEchkNewItems ERRORchkNewItems: ON ERROR GOTO 0 err = "Error running Mark Operation: <br> " + error_text_get() + "<br>" + err + "<br>" + table_to_mark CONTINUEchkNewItems:
Code:
current_filter = ".t." a_tbl = table.open("newitems") ON ERROR GOTO ERROR07082009163928730 a_tbl.mark_dups2("alltrim(str(Amount,15,2))-Acct_Num-Acct_Type-Serial_Num",current_filter) GOTO CONTINUE07082009163928730 ERROR07082009163928730: ON ERROR GOTO 0 ui_msg_box("Error","Error running Mark/Un-mark/Delete Operation"+crlf()+error_text_get()) END CONTINUE07082009163928730: a_tbl.close()'If the Operation is run from within a Form or Browse, then refresh the window if is_object(topparent.this) then if topparent.Class() = "form" .or. topparent.class() = "browse" then topparent.Refresh_layout() end if end iff