recognize text backwards
thierry
douez at wanadoo.fr
Tue Nov 23 11:40:32 EST 2004
Hi,
Well, here you'll find part of text written in a Rev field.
-------------------------------------
1_ Define F1 'input'
2_ Set products as Plate:( at: A3 name: 96GreinerV filename: F1 )
3_ Set HeadP20 as Head: ( at: A1 name: p20 position: 1 )
4_ PlaceOnBench ( products plate1500 tips HeadP20 )
5_ Set useTip as Usetips: ( tool: HeadP20 boxes: ( tips ) change: each after: back )
6_ Set aspirate as Aspirate: ( volume: 3
7_ TipTouch: tiptouch mode: byStep
8_ VHDs: ( volume: 100 height: 5 delay: 100 )
9_ Pspeed: 2 Zspeed: 10
10_ )
-------------------------------------
To edit these sentences, the user has the possibility to click-right,
and a contextuel popup menu appears where we can choose a value which is
then paste at the selection point. this works great as the context is
based on the word before the selection point !
I would like to go further and to be able to match a wider context. For
instance, clicking on the word "96GreinerV" at line 2, the content of the
Pop-up will depend on "name:" but also on "Plate:" same line.
2nd example: clicking on the word byStep line 7, the context is "mode:"
the word before, but also Aspirate: which is line 6.
the field can be up to hundred lines.
Could someone put me on the right track to deal with this problem ?
what technique will work fast enough in Xtalk ?
which text search functions will be the most suitable ?
well, hope i'm clear :-)
regards, thierry
More information about the use-livecode
mailing list