"a"space"b"-- yields "a b" putfirstNamespacelastNameintofullName
Additional Comments
Use the spaceconstant as an easier-to-read substitute for " ".
Lessons
User Comments
Ernst M. Reicher
Jan 20, 2010
should probably be:
"a" & space & "b" -- yields "a b"
put firstName & space & lastName into fullName
rodney@oceanbrowser.com
Jun 4, 2010
If you want to trim white space from the start and end of a string, whether or not it actually exists: put " fred " into tTemp
put word 1 to -1 of tTemp into tTemp
put fred --> "fred" However this will not trim a string which only contains whitespace, e.g.: " "
tesler@nomodes.com
Sep 22, 2010
@rodney: Thanks for the tip!
word1to-1ofs
where
s
contains only spaces, does yield the empty string, at least in LiveCode 4.5. @e.reicher: You are correct, the examples should have ampersands.