Error getting tags :
error 404Error getting tags :
error 404 character | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
character
Basics
Expander triangle
Type
Keyword
Syntax
xmlerr, can't find element
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Designates a single character as part of a chunk expression.
Examples

get char 1 of field "Answers"
put char 12 to 14 of it into oldAnswer

Additional Comments
Expander triangle

Use the character keyword to refer to a specific character or characters in a container.

Comments:

A character is a single letter, digit, punctuation mark, or control character. Spaces, tabs, and returns are all characters.

Important! Characters in chunk expressions are assumed to be single-byte characters. To successfully use chunk expressions with Unicode (double-byte) text, you must treat each double-byte character as a set of two single-byte characters. For example, to get the numeric value of the third Unicodecharacter in a field, use statements like the following:

set the useUnicode to true -- makes charToNum assume Unicode

get charToNum(char 5 to 6 of field "Chinese Text") -- gets bytes 5-6

User Comments
Expander triangle
User thumbnail
Hans Behrens
StarStarStarStarStar
Apr 6, 2009
When deleting characters using chunk expressions, the following syntaxes are acceptable:

delete the last character of tFieldName

... would delete the last character of tFieldName, as you would expect. The "first" keyword is also acceptable.

delete character 1 to 5 of tOffsetValue

... would delete the first 5 characters of tOffSetValue.

delete character -8 to -1 of tFilePath

... would delete the last 8 characters of tFilePath