Redirect depending on text
Hello. I have MMF2 Developer and am trying to make Frame 1 switch to Frame 2 automatically when specific text is in the Rich Edit Object.
For example, pretend I am currently on Frame 1 and the Rich Edit Object has the number 516 in it, the program would instantly recognize that and switch to it's programmed frame.
How would I do this?
If someone could guide me through it, or make the .mfa file, I wouldn't be able to thank you enough!
Re: Redirect depending on text
The first object (Special/General object) - looks like two screens - has a condition called "Compare two general values".
Put the text you are looking for in the bottom box:
"516"
and in the top box:
[color:#000099]GetText$( "Rich Edit Object", 0, GetNChars( "Rich Edit Object" ))[/color]
That expression gives you the first byte, 0, to the number of characters, whatever that may be.
In short, it gives you the full text that Rich Edit is displaying.