PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
URLExtractPath (Function)
In French: URLExtraitChemin
Returns the different elements of a URL: protocol, user, password, domain, port, resource path, resource name, resource extension, request and fragment.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Example
// Retrieve the full path of the URL resource
Resource = URLExtractPath("http://user1:userpwd1@www.site.com:80/images/image.gif", ...
urlResourcePath + urlResourceName + urlResourceExtension)
// Resource = "/images/image.gif"
Syntax
<Result> = URLExtractPath(<URL> , <Section to Extract>)
<Result>: Character string
  • Requested URL section.
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<URL>: Character string (with quotes)
Full or relative URL to use.
<Section to Extract>: Integer constant
URL section to extract:
urlResourcePathPath of the URL resource.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "/pages/".
urlDomainDomain of the URL.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "www.site.com".
urlResourceExtensionExtension of the resource in the URL.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to ".htm".
urlFragmentFragment of the URL (anchor in a document).
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "part1".
urlPasswordPassword of the user in the URL.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "userpwd1".
urlResourceNameName of the URL resource.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "page1".
urlPortPort of the URL.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "80".
urlProtocolProtocol of the URL.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "http".
urlRequestRequest of the URL.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "id=5".
urlUserName of the user in the URL.
Example: for the following URL "http://user1:userpwd1@www.site.com:80/pages/page1.htm?id=5#part1", corresponds to "user1".
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment