Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string operators and s.expandpath
#1
The QM 2.1.4(beta) help topic "Strings" gives this example
Code:
Copy      Help
str s = "Cat"
out s
s + " and Mouse"
out s
s - "Dog, "
out s
which when run, gives
  • Cat
    Cat and Mouse
    Dog, Cat and Mouse
Does anyone know why a like use of string operators
Code:
Copy      Help
str ss s.expandpath("$Desktop$")
out s
ss = s + "\myfile.txt"
out ss
ss = "\myfile.txt" - s
out ss
gives integers instead of strings?
  • C:\Documents and Settings\MyUserName\Desktop
    24075838
    2886202
Thanks, -John


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)