Well ive hit another block in my logon script, ive read and re-read the syntax for the use statement in the manual, but the example syntax doesnt seem to indicate how im doing what im doing wrong.

Code:

FUNCTION ADDDRIVES
; *** BEGIN ADDDRIVES SUBROUTINE ***
USE H: "\\filesvr\public" /PERSISTANT
if @error = 0
? "H Drive Mapped Successfully"
ELSE
? @serror
ENDIF
USE X: "\\filesvr\users" /PERSISTANT
if @error = 0
? "X Drive Mapped Successfully"
ELSE
? @serror
ENDIF
ENDFUNCTION