home *** CD-ROM | disk | FTP | other *** search
- REM Description: Find next style tag
- REM Filename: findsty.wmc
- REM Created by: Steve Wylie - 11/08/93
-
- REM Can't run if no document open
- IF GetDocName$() = "" THEN
- MESSAGE "Please create a new document or open an existing document first."
- STOP
- ENDIF
-
- REM Can't run in a graphic or table frame
- frameType% = GetFrameType()
- IF frameType% <> 0 THEN
- Message "The current frame must be a text frame."
- STOP
- ENDIF
-
- REM Can't run in frame mode
- ret% = ViewEditMode(1)
- IF ret% = 2 THEN
- ret% = ViewEditMode(2)
- BEEP
- STOP
- ENDIF
-
- retint% = EditFind( "<St ", 0, 0, , 1, 1, )
- if retint% = 0 then
- Message("No style tag found.")
- Stop
- endif
-
- REM We have to move the insertion point right and then left again to go beyond the font tag.
- CharRight 1, 0,
- CharLeft 1, 0,
-
- ***** WARNING *****
- This is a WSWin macro file.
- Subsequent data is binary information and should not be modified.