Why did I use matchtext and replace in my previous example.... Sorry I was leaving you to find the solution on your own (sorry, teacher here)... There was obviously an obvious shortcut to take.

put BTrim("   The cat sat under the mat   " ) into tResult

function BTrim pText
    get matchtext(pText, "(^[ \t]*(.*)[ \t]*$)", tFull, tPart)
    replace tFull with tPart in pText;
    return pText
end function

Best,
Marielle

------------------------------------------------------------------------ --------
Marielle Lange (PhD),  Psycholinguist

Alternative emails: [EMAIL PROTECTED], [EMAIL PROTECTED]
Homepage http://homepages.lexicall.org/mlange/
Easy access to lexical databases                    http://lexicall.org
Supporting Education Technologists http:// revolution.lexicall.org



_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to