proper
Builtin index · Collections & strings
result = proper(s)
Input: s · Output: result
What it is
s is a Str. Uppercases every word's first character, lowercases the rest — VB's StrConv(s, vbProperCase).
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = proper(s) | s Strnot documented yet | result Str | Returns a Str. |
Examples
From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.
print("-" * 40) # "----------------------------------------"
print("hello".substr(0, 2).replace("e", "i")) # "hi"
print(pad_left(str(7), 3, "0")) # "007"
print(proper("ada lovelace")) # "Ada Lovelace"
print(count("banana", "a")) # 3
output
---------------------------------------- hi 007 Ada Lovelace 3
from collections-strings