Signature (Visual Basic / VBA)
Public Function RandomCapitalize( _
ByVal vValue As Variant _
) As Variant
Code Example
Rnd(-1) = 0.224007
RandomCapitalize("This is a test.") = "this Is A teSt."
RandomCapitalize("SAMPLE TEXT") = "sAMPlE tEXT"
Notes & Version History
| Note | The call to the Visual Basic Rnd function in the above example seeds the Visual Basic random number generator so that the sample results can be reproduced. There is generally no need to call the Rnd function within your programs since Entisoft Tools initializes the Visual Basic random number generator once with "Randomize" statement. |
| vvstValue | String whose characters should be capitalized in a random way. Function returns Null if vValue is Null or cannot be fixed up to a String. |