JavaScript Editor js editor     Web development 



Main Page

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

ADDBS(cPath)

Parameters

cPath


Specifies the path name to which to add the backslash.

Return Value

Character

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.

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

See Also



JavaScript Editor js editor     Web development 
R7