How to check if url is valid

Win10 LO7.1.2.2

Hi,

I have a form which allows me to open files, the button action being open webpage…
Normally via macro I would do a if fileexist, but here I have a url pointing to some
file which may have been moved or deleted.

image description

Can I still use fileexist or do I somehow cut the file/// bit from the string?
Thanks for pointers.

According to help it should work → FileExists Function

@Ratslinger, Thank you