checking if a path is relative?

Kevin Miller kevin at runrev.com
Mon Jan 21 13:45:10 EST 2002


On 19/1/02 11:41 am, Almesjö Niklas <niklas_almesjo at yahoo.com> wrote:

> Is there any way to check if a path is relative or
> absolute? On windows I think an absolute path always
> contain a ":", and a relative can not contain ":". But on
> Mac.. an absolute path does not contain ":". Anything else
> you can check for?
> any ideas appreciated,

You're right about Windows, and on the Mac and other platforms (not Windows)
check for a leading slash.

Kevin

Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.




More information about the use-livecode mailing list