Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

In VB einen String in Groß- oder Kleinbuchstaben umwandeln

Empfohlene Antworten

Veröffentlicht

Hi,

in VB habe ich text in einer String-Variablen stehen. Nun gibt es doch bestimmt eine Funktion mit der ich den Inhalt der Variablen in Groß oder Kleinschreibung umwandle?

Danke, Matze

Hallo

für großschreibung

Variable1=UCase$(Variable2)

für kleinschreibung

Variable1=LCase$(Variable2)

In VBA gibt es die UCase-Funktion. Die Syntax ist so:

GroßeBuchstaben = UCase(KleinBuchstaben)

Bestimmt gibts das in VB auch. Check das mal... user.gif

Die Gegenfunktion ist übrigens LCase (also von Gross nach Klein)

Beispiele:

Dim MyWord

MyWord = UCase("Hello World") 'Returns "HELLO WORLD".

Dim MyWord

MyWord = LCase("Hello World") 'Returns "hello world".

UCase heisst voll ausgeschrieben UpperCase (Großschreibung) und LCase LowerCase (Kleinschreibung) damit kannst du dir das merken.

[ 01. Juni 2001: Beitrag editiert von: Spike ]

Super, danke...

Ab VB6 geht auch die Funktion StrConv(...)

MfG Thomas Schwenke

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.