Ojo guarden esto..que les sirve, ya para cerrar este tema.La confusión
la viene porque no hay una solución única, depende de como inicies el
programa: aqui les mando una fucion que resuelve esto de forma
inequívoca ( gracias a Rick Strahl )
DO CASE
CASE INLIST(Application.StartMode,2,3,5)
lcPath = JustPath(Application.ServerName)
CASE (Application.StartMode) = 0
lcPath = SYS(5) + CURDIR()
CASE ATC(".APP",SYS(16,0)) > 0
lcPath = JustPath(SYS(16,0))
OTHERWISE
lcPath = JustPath(SYS(16,0))
IF ATC("PROCEDURE",lcPath) > 0
lcPath = SUBSTR(lcPath,RAT(":",lcPath)-1)
ENDIF
ENDCASE
RETURN AddBs(lcPath)
Saludos.
Marco Plaza
> ¿PuedeHola ser de las opciones de configuración del VF?