i create model window(new substack) find text in scrolling field. it's not working using following code
the following code calls modal window
on mouseup modal stack "sub" end mouseup
the following code finding string in scrolling field
on mouseup if field "ee" empty answer "please enter filename" "ok" end if if field "ee" not empty put text of field "ee" xx --answer xx repeat each word myword in fld "mytextfield" if fld "mytextfield" contains xx find xx in fld "mytextfield" exit top end repeat end if end mouseup
here "mytextfield" in main stack
you don't explain "not working" means, because stack "sub" different stack, need use explicit reference field:
field "ee" of stack "mymainstack"
another option set defaultstack property name of main stack, don't need use explicit object references:
set defaultstack "mymainstack" if field "ee" empty then...
remember change defaultstack substack if ever need refer object in substack.