BBInvoker::isURL

Description

In BBj 9.0 and higher, this method determines if a string passed is a URL.

Syntax

Return Value

Method

boolean

isURL(string urlString)

Parameters

Variable

Description

urlString

Specifies the string that will be used to determine if it is a URL

Return Value

TRUE (1) is returned if the passed string is a URL, otherwise FALSE (0) is returned.

Remarks

None.

Example

rem 'Demo on how to use the BBInvoker isURL method

use ::bbinvoker.bbj::BBInvoker
declare BBjString url$
url$ = "https://www.basis.cloud"
if (BBInvoker.isURL(url$))
    print "This is a URL"
else
    print "This is not a URL"
endif

See Also

BBj Object Syntax