03-08-2006, 02:34 PM
Please read Help, Quick Start. It contains answers about looping (repeating) and editing menus.
Create new member function (click menu File -> New -> New Member Function). Name it str.CapWords . Paste this code using menu Edit -> Other Formats -> Paste Escaped:
Then insert this somewhere in Sample menu:
Create new member function (click menu File -> New -> New Member Function). Name it str.CapWords . Paste this code using menu Edit -> Other Formats -> Paste Escaped:
;/
;Capitalizes first character of each word.
;EXAMPLE
;str s="quick macros"
;s.CapWords
;out s ;;"Quick Macros"
ARRAY(lpstr) a
tok this a
int i
for i 0 a.len
,a[i][0]=toupper(a[i][0])Then insert this somewhere in Sample menu:
