Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request for a sample to learn from
#3
Is this what you're looking for?

Member function str.CapWords
Code:
Copy      Help
;/

;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])


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)