home *** CD-ROM | disk | FTP | other *** search
- /*
- @BAllCaps @P@ICopyright Gold Disk Inc., February, 1992
-
- This Genie will capitalize every letter in a block of text.
- */
- if ~show(l, "gdarexxsupport.library") then
- if ~(exists("libs:gdarexxsupport.library") & addlib("gdarexxsupport.library", 0, -30)) then
- exit_msg("Please install the gdarexxsupport.library in your libs: directory before running this Genie")
-
- if word(ppm_GetState(), 1) ~= "3" then
- exit_msg("This Genie works only in edit mode!!")
-
- text = ppm_GetBlockText(1)
- if text = '' then exit_msg("No block selected")
-
- i = 1
- len = length(text)
- call ppm_ShowStatus("Working...")
- do while i < len
-
- curletter = substr(text, i, 1)
- do while curletter = '\'
- i = skipcodes(text, i)
- curletter = substr(text, i, 1)
- end
- if curletter = ' ' then
- do
- i = i + 1
- iterate
- end
-
- text = overlay(upper(curletter), text, i)
-
- i = i + 1
-
- end
- call ppm_InsertText(text)
- call ppm_ClearStatus()
- exit
-
- exit_msg:
- do
- parse arg msg
-
- call ppm_ShowStatus(msg)
- exit
- end
-
-
-