returnInField problem
Friedrich F. Grohmann
shedrup at ms9.hinet.net
Thu Dec 29 11:12:41 EST 2005
Mark Smith asked:
>How is the returnInField handler in the script of field "x" being
>triggered?
The relevant part of the script in Stack A is
put myVariable into fld x
select after fld x
type numToChar(13)
This works if executed from the message box. Nevertheless, since nothing
happened I've also tried to select manually after the text in fld x, just
in order to be sure, but the result is the same -the text in fld y will
not be found.
Still baffled,
Fritz
>On 29 Dec 2005, at 13:59, Friedrich F. Grohmann wrote:
>
>> I am working with two stacks both of them with a number of text
>> fields.
>> There is a script in stack A which puts the selectedText of one
>> field of
>> this stack into a variable and then goes to stack B where it puts the
>> variable into field x. The script of field x is
>>
>> on returnInField
>> find string the text of me in fld y
>> select after fld x
>> end returnInField
>>
>> The result is, whatever I do, negative even if the looked for text is
>> right there on this very card in fld y. The stange thing is that
>> when I
>> type exactly the same text directly into field x the script works
>> flawlessly. What could be the problem?
>>
>> My setup is Rev 2.6.1 on a G4 notebook under Mac OS 10.3.2.
>>
>> Thanks in advance,
>> Fritz
More information about the use-livecode
mailing list