UrlIsSame

From kwiki

Jump to: navigation, search
This article is written by Konrad, thus using rather nonstandard English:)

UrlIsSame (DNM Script function)

full declaration

bool UrlIsSame (string strPath1,string strPath2)

return value

bool

description

Returns a true if given file/folder paths are the same. Otherwise returns false.

The function is simply more tolerant than comparing strings (strcmp), in the following example the function will return 'true':

if(UrlIsSame("c:\\windows","c:/Windows/"))
 MessageBox("the same");
else MessageBox("different");
Personal tools
konradp.com