
TC_URLEncode(sourceString) - where sourceString is the string to operate on. Returns a copy of
the source string encoded or "" if there was an error. Hex-encodes the punctuation and 8-bit
characters in a string. This method is deprecated in D11.
Example:
set source = "This is an encoded string."
put TC_URLEncode(source)
-- "This%20is%20an%20encoded%20string%2e"
TC_URLDecode(sourceString) - where sourceString is the string to operate on. Returns a copy of
the source string decoded or "" if there was an error. Converts hex-encoding sequences in a string
back to single-characters. This method is deprecated in D11.
Example:
set source = "This%20is%20an%20decoded%20string%2e"
put TC_URLDecode(source)
-- "This is an decoded string."
ERROR REPORTING
The previous version of TextCruncher could return error values or data from the same call. The
current version returns only data from calls with return values. If there is an error that prevents
the call from returning data, the closest thing to nothing, but in the same data type, is returned.
For instance a call that normally returns a Lingo list will return an empty list if there is an error.
A call that normally returns a string will return an empty string if there is an error. This method
of error handling insures that the same data type will always be returned from a call, so it enables
the Lingo programmer to write more generic error handlers.
Online Help
48
Comentarios a estos manuales