AutoCaps$
CapitalizedString$ = AutoCaps$(StringToConvert$)
 
Parameters:

    StringToConvert$ = The string you wish to capitalize the words within
Returns:

    CapitalizedString$ = The string after it's been converted
 

      AutoCaps$() will capitalize the first character of each word in a string. It's mostly useful for formatting text for display.




FACTS:


      * To change the case of a string see Lower$() and Upper$()




Mini Tutorial:


     This example will display a string with each word capitalized.

  
; Display the string "play basic", but Capitalized
  Print AutoCaps$("play basic")
  
; Display the string "play basic", but Capitalized
  Print AutoCaps$("PLAY BASIC")
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  Play Basic
  Play Basic
  




 
Related Info: Lower$ | Upper$ :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com