骋飞 发表于 2016-8-1 16:13:29

帮忙解释一下这个函数fieldsetinputpos

http://www.textcontrol.com/en_US/support/documentation/activex/o_txtextcontrol.fieldsetinputpos.htm

If the current text input position is a position at the beginning or at the end of a marked text field with a doubled input position, this method can be used to define whether the position is inside or outside the field. The input position's character position is not changed.

Introduced: 13.0.

Syntax
TXTextControl.FieldSetInputPos FieldInputPosition
ParameterDescription
FieldInputPositionSpecifies the position. It can be one of the following Constants:


ValueDescription
txInsideFieldThe current input position is inside the field.
txOutsideFieldThe current input position is outside the field.
txInsideNextFieldThe specified position is inside the next field. This value is only possible, if there are two following fields without any character between the fields. In this case txInsideField is in the first field, txOutsideField is between the fields and txInsideNextField is in the second field.



Return Value
The return value is non-zero if the input position has been changed. It is zero if the current input position is not at the beginning or the at the end of a field or if the field has no doubled input position.


Data Types

FieldInputPosition:Integer
Return value:Boolean


FieldInputPosition的数据类型是Integer,不知道应该是几个什么值,我从0-20都试了完全没有效果,高手帮忙分析一下

Alice 发表于 2016-8-1 16:25:00

文档里有啊,FildInputPosition就是图里的三个值:

骋飞 发表于 2016-8-1 16:28:28

:L要求是integer型啊,这三个字符串如何表示成integer型啊

骋飞 发表于 2016-8-1 16:33:29

哪位大神帮个忙啊,我都弄了一天了:'(

Alice 发表于 2016-8-1 17:07:33

骋飞 发表于 2016-8-1 16:33
哪位大神帮个忙啊,我都弄了一天了
ActiveX直接设置Value(比如:txInsideField )就可以了,你使用value设置是有什么问题么?
页: [1]
查看完整版本: 帮忙解释一下这个函数fieldsetinputpos