home *** CD-ROM | disk | FTP | other *** search
- ' Input.bas Demonstrates use of Mh.String.Input
-
- Rem $Include: 'Mhinit.sub'
- Rem $Include: 'Mhstrin.sub'
- Rem $Include: 'Mhspeakr.sub'
-
- CALL Mh.Init(Monitor%, Mh.Cursor.Normal.Start%, Mh.Cursor.Normal.End%, Mh.Cursor.Insert.Start%, Mh.Cursor.Insert.End%)
- CLS
- Mh.Response$ = "This is the string to edit"
- Mh.Input.Mask$ = "Aabbb"
- LOCATE 10, 10 ' Tells input routine where edited data starts.
- ' If you want the edit to begin at a point other
- ' than the first character, assign a value to
- ' Mh.Current.Pos% where the value is the Mid$ point
- ' in the string.
-
- CALL Mh.String.Input(Mh.Response$, Mh.Input.Mask$, Mh.Current.Pos%, Mh.Cursor.Normal.Start%, Mh.Cursor.Normal.End%, Mh.Cursor.Insert.Start%, Mh.Cursor.Insert.End%)
-
- LOCATE 15, 10
- PRINT "Your response was:"
- LOCATE 16, 10
- PRINT CHR$(34); Mh.Response$; CHR$(34)
- END
-
-
-
-