<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/td/onlinemanual/000433" xml:lang="zh-cn">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">交易关系管理 - 选择表达式示例</Title>
		<Keyword ContextSensitive="No"><Level1>交易关系管理</Level1>
			<Level2>选择表达式示例</Level2>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">如果在<Link href="/baanerp/td/smi/tdsmi0170m000" role="session">选择 (tdsmi0170m000)</Link> 进程中创建了选择表达式，则可以使用文本编辑器来创建表达式。</Paragraph>
	</AimSection>
	<GeneralSection><SectionTitle>字母数字表达式示例</SectionTitle>
		<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TD rowspan="1" colspan="1">(R, 颜色) = "red"</TD>
					<TD rowspan="1" colspan="1">特性为字母数字</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">tccom100.bpid = "JOHNSON"</TD>
					<TD rowspan="1" colspan="1">表字段为字母数字</TD>
				</TR>
			</TBODY>
		</TABLE>
		<Paragraph class="Default"></Paragraph>
		<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TD rowspan="1" colspan="1">(R, 内容) = 1</TD>
					<TD rowspan="1" colspan="1">特性为数字</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">tccom110.umsp = 2</TD>
					<TD rowspan="1" colspan="1">表字段为数字</TD>
				</TR>
			</TBODY>
		</TABLE>
		<Paragraph class="Default"></Paragraph>
		<Paragraph class="Default">(R, 内容) IN (10,100) (110,200)</Paragraph>
		<Paragraph class="Default">该特性的值必须大于等于 10 并且小于等于 100，或者大于等于 110 并且小于等于 200。</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>字符串表达式示例</SectionTitle>
		<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TD width="23" rowspan="1" colspan="1">^</TD>
					<TD width="373" rowspan="1" colspan="1">字符串开头</TD>
				</TR>
				<TR><TD width="23" rowspan="1" colspan="1">$</TD>
					<TD width="373" rowspan="1" colspan="1">字符串结尾</TD>
				</TR>
				<TR><TD width="23" rowspan="1" colspan="1">.</TD>
					<TD width="373" rowspan="1" colspan="1">任意字符</TD>
				</TR>
				<TR><TD width="23" rowspan="1" colspan="1">*</TD>
					<TD width="373" rowspan="1" colspan="1">0 或多个重复的前一字符</TD>
				</TR>
				<TR><TD width="23" rowspan="1" colspan="1">()</TD>
					<TD width="373" rowspan="1" colspan="1">() 之内的任意单个字符，例如 (abcd123) 或 (a-z)</TD>
				</TR>
				<TR><TD width="23" rowspan="1" colspan="1">(^)</TD>
					<TD width="373" rowspan="1" colspan="1">括号内指定字符范围以外的任意单个字符，例如 (^XYZ0-9)</TD>
				</TR>
				<TR><TD width="23" rowspan="1" colspan="1">""</TD>
					<TD width="373" rowspan="1" colspan="1">字符串内的双引号</TD>
				</TR>
			</TBODY>
		</TABLE>
		<Paragraph class="Default"></Paragraph>
		<List><ListTitle>示例</ListTitle>
			<ListItem>"abcdefg" IN "def" = TRUE</ListItem>
			<ListItem>"abcdefg" IN "^def$" = FALSE</ListItem>
			<ListItem>"abcdefg" IN "^a" = TRUE</ListItem>
			<ListItem>"abcdefg" IN "^b" = FALSE</ListItem>
			<ListItem>"abcdefg" IN "g$" = TRUE</ListItem>
		</List>
		<Paragraph class="Default">或者： (R,...) IN "abcde"</Paragraph>
		<Paragraph class="Default">表示：检查所有特性是否包含字符串 "abcde"</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>表达式的优先级</SectionTitle>
		<Paragraph class="Default">算术运算符比关系运算符具有更高的优先级。关系运算符比逻辑运算符具有更高的优先级。</Paragraph>
		<Paragraph class="Default">算术运算符的优先级顺序是： * / ¥ + -</Paragraph>
		<Paragraph class="Default">逻辑运算符的优先级顺序是：NOT、AND、OR</Paragraph>
		<Paragraph class="Default">可以使用圆括号（“()”）来更改字母数字运算符和逻辑运算符的优先级顺序。例如，3 + 4 * 5 = 23，而 (3 + 4) * 5 = 35</Paragraph>
	</GeneralSection>
	<RelatedTopics><SectionTitle>
                           相关主题
                        </SectionTitle>
		<RelTopic><Link href="/baanerp/td/onlinemanual/000430" role="manual">交易关系管理 - 文本编辑器</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/td/onlinemanual/000422" role="manual">关系管理概览</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
