Page 1 of 1

Strange string variable...

Posted: Mon Mar 22, 2021 11:10 pm
by AMpos

Code: Select all

Global myweb.s
! v_myweb = window.location

Debug myweb.s
Debug Len(myweb.s)
debug left(myweb,len(myweb)-4)
Why len() return a "undefined" error?

I want to cut "myweb" string, but I cant not

Re: Strange string variable...

Posted: Tue Mar 23, 2021 12:19 am
by Peter
window.location is an object, not a string.

Code: Select all

Global myweb.s

! v_myweb = window.location.href;

Debug myweb.s
Debug Len(myweb.s)
Debug Left(myweb,Len(myweb)-4)

Re: Strange string variable...

Posted: Tue Mar 23, 2021 8:58 pm
by AMpos
Thanks!