论坛: 编程破解 标题: 请问在vf中函数chrtran有什么实际作用吗! 复制本贴地址    
作者: yangcheng [yangcheng]    论坛用户   登录
请问在vf中函数chrtran有什么实际作用吗!
请用实例告诉我好吗!
谢谢!

地主 发表时间: 12/15 17:38

回复: 286 [unique]   版主   登录
CHRTRAN( ) Function
Example  See Also

Replaces each character in a character expression that matches a character in a second character expression with the corresponding character in a third character expression.

Syntax

CHRTRAN(cSearchedExpression, cSearchExpression, cReplacementExpression)

Returns

Character

Arguments

cSearchedExpression

Specifies the expression in which CHRTRAN( ) replaces characters.

cSearchExpression

Specifies the expression containing the characters CHRTRAN( ) looks for in cSearchedExpression.

cReplacementExpression

Specifies the expression containing the replacement characters.

If a character in cSearchExpression is found in cSearchedExpression, the character in cSearchedExpression is replaced by a character from cReplacementExpression that's in the same position in cReplacementExpression as the respective character in cSearchExpression.

If cReplacementExpression has fewer characters than cSearchExpression, the additional characters in cSearchExpression are deleted from cSearchedExpression. If cReplacementExpression has more characters than cSearchExpression, the additional characters in cReplacementExpression are ignored.

Remarks

CHRTRAN( ) translates the character expression cSearchedExpression using the translation expressions cSearchExpression and cReplacementExpression and returns the resulting character string.


--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources.

B1层 发表时间: 12/15 18:09

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号