Syntax edit



Description edit

This function returns a copy of string$ or container$$ with all its lower-case letters converted to upper-case. This also applies to letters with diacritical marks; so for example the string "mágüey" will be converted to "MÁGÜEY". UCASE$ is useful when you want to compare two strings for equality without regard to their letter case. For example, suppose you want all of the following strings to be treated in the same way: STAZ Staz staz sTAz Any pair from the above set will be considered to "match" if they're compared as follows: IF UCASE$(str1$) = UCASE$(str2$) THEN PRINT "Names match." The comparison of containers requires the use of an additional function. See FN FBcompareContainers for more information. Note: To test whether one string is greater than or less than another without regard to letter case, an alternative method is to use the string comparison operators ">>" and "<<". See Appendix D: Numeric Expressions, for more information.

See Also edit

FN FBcompareContainers; Appendix F: ASCII Character Codes