次の方法で共有


ADDBS( ) Function

Adds a backslash (if needed) to a path expression.

ADDBS(cPath)

Return Value

Character

Parameters

  • cPath
    Specifies the path name to which to add the backslash.

Example

The following code displays a directory path and demonstrates that the ADDBS( ) function adds a backslash if one does not exist, but does not duplicate if one does exist.

*-- Both print C:\Windows\
? ADDBS( "C:\Windows" )
? ADDBS( "C:\Windows\" )

See Also

Reference

DEFAULTEXT( ) Function

FILE( ) Function

FORCEEXT( ) Function

FORCEPATH( ) Function

JUSTDRIVE( ) Function

JUSTEXT( ) Function

JUSTFNAME( ) Function

JUSTPATH( ) Function

JUSTSTEM( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)