validate if a string comes with Uppercase format

Hi team,

I would like if there is a function to validate if a String comes in UpperCase format?

something like.. i.e ..
if m.isUppercase(value)

//DO SOMENTHING

end if

Thanks in advance.

you can use a regex, something like

function isUppercase(s as String)
    return not createObject("roRegEx", "[a-z]", "").isMatch(s)
end function

@NB answer is correct. Please refer to the roRegex documentation for validating any type of string.

You should create a Function as per @NB told and pass a string in function using if condition.

function isUppercase(s as String)
    return CreateObject("roRegex", "[A-Z]", "").isMatch(s)
end function
if isUppercase(s) then
    ?"UpperCase String"
else
    ?"Not UpperCase String"
end if

You can do the same for else.