Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom string member function
#1
Hi,

I created a string member function str.exist, but there is no output(Null) in M2, Why?

Thanks in advance for any suggestions and help
david


Macro M1
 
Code:
Copy      Help
str p="C:\Users\Administrator\Desktop\e"
out p ;;ok
if FileExists(p 1)
,out "Exists"
out p ;;ok

Macro M2
 
Code:
Copy      Help
str p="C:\Users\Administrator\Desktop\e"
out p ;;ok
if p.exist
,out "Exists"
out p ;;Null

Member function str.exist
Code:
Copy      Help
function# ;;Determine the file or folder exists

_s=this.searchpath
if empty(_s)
,ret 0
else
,ret 1


Messages In This Thread
Custom string member function - by Davider - 02-22-2023, 01:01 AM
RE: Custom string member function - by Davider - 02-22-2023, 06:22 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)