PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Conversion rules
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Converts a character string into uppercase characters according to the localization settings defined in Windows.
Note: Upper is kept for backward compatibility and it operates with Latin character sets only. To configure the formatting of a string more precisely or to handle other character sets, use StringFormat.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
Upper("abcd")   // Returns "ABCD"
Upper("élan")  // Returns "ELAN"
Upper("this!")   // Returns "THIS!"
Syntax
<Result> = Upper(<Character String to Convert>)
<Result>: Character string
Character string in uppercase characters.
<Character String to Convert>: Character string (with quotes)
Character string to convert into uppercase characters.
Remarks

Conversion rules

  • The non-accented lowercase characters are changed into non-accented uppercase characters.
  • The accented lowercase characters are changed into non-accented uppercase characters.
    WEBDEV - Browser code The accented lowercase characters are changed into accented uppercase characters.
  • The non-accented uppercase characters remain as non-accented uppercase characters.
  • The accented uppercase characters remain accented uppercase characters.
Note: Upper is kept for backward compatibility and it operates with Latin character sets only. To configure the formatting of a string more precisely or to handle other character sets, use StringFormat.

Various

  • The "space characters" are kept.
  • The HFSQL engine performs automatic searches while ignoring the case. Therefore, Upper is useless when performing this type of operation.
Component : wd250vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video Upper
https://youtu.be/9nth9oec-QA

https://windevdesenvolvimento.blogspot.com/2019/06/dicas-2154-windev-webdev-mobile-string.html

// EXIT - EDT_MAISCULA_MANUAL_UPPER
EDT_MAIUSCULA_MANUAL_UPPER=Upper(EDT_MAIUSCULA_MANUAL_UPPER)
amarildo
13 Jun. 2019
Função Capitalize
Procedure Capitalize(LOCAL Texto)

ChangeCharset(charsetOccidental) // SEM ACENTO

IF Texto <> Null AND Texto <> ""
Texto = NoAccent(Texto)

Texto = Lower(Texto)

Texto = Upper(Middle(Texto,1,1)) + Middle(Texto,2,Length(Texto))

nEspaco01 is int = PositionOccurrence(Texto," ",firstRank,FromBeginning) + 1
IF nEspaco01 > 1 THEN
Texto = Middle(Texto,1,nEspaco01-1) + Upper(Middle(Texto,nEspaco01,1)) + Middle(Texto,nEspaco01+1,Length(Texto))
END


TOT is int = 0
POS1, POS2, POS3 is int = 0
TOT = Length(Texto)
LOOP (TOT)
POS1 +=1
POS2 = POS1 + 1
POS3 = POS2 + 1
IF Middle(Texto,POS1,1) = " " AND Middle(Texto,POS2,1) <> " "
Texto = Middle(Texto,1,POS1) + Upper(Middle(Texto,POS2,1)) + Middle(Texto,POS3,TOT)
END
END


Texto = Replace(Texto," Da ", " da ")

Texto = Replace(Texto," Das ", " das ")

Texto = Replace(Texto," De ", " de ")

Texto = Replace(Texto," Do ", " do ")

Texto = Replace(Texto," Dos ", " dos ")

END

RESULT(Texto)
BOLLER
23 Feb. 2019
Exemplo Upper - Transforma Maiscula
cidade is string=Upper(NoAccent(_NOME_CIDADE))
cidade is string=Upper(NoAccent("novo hamburgo"))

// Blog Com Video
http://windevdesenvolvimento.blogspot.com.br/2016/01/windev21-curso-218-upper-maisculo.html
De matos AMARILDO
09 Jan. 2016