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 ä, ü und ö?!?!?!

Empfohlene Antworten

Veröffentlicht

Guten Morgen!!! Ich hoffe von euch kann mir jemand helfen, ich hab folgendes Problem, ich möchte das der Kunde im Eingabefeld (text1) keine Umlaute eingeben kann.... Mein Script dafür wäre:

Text1.Text = Eingabe

If Eingabe = "ä" Then

MsgBox "Sie können keine Umlaute eingeben", vbInformation

ElseIf Eingabe = "ö" Then

MsgBox "Sie können keine Umlaute eingeben", vbInformation

ElseIf Eingabe = "ü" Then

MsgBox "Sie können keine Umlaute eingeben", vbInformation

Else

MsgBox "Ihre Eingabe war korrekt!", vbInformation

End If

End Sub

Aber es kommt immer nur Ihre Eingabe war korrekt, egal was ich eingebe!!! Könnt ihr mir da helfen? Vielen Dank

Gruss

JP

Tach Post!

Lege doch einfach deinen Prüfcode im Keypress Ereignis ab. Das könnte dann so ausschauen:

Private Sub Text1_KeyPress(KeyAscii As Integer)

Select Case KeyAscii

Case 228 ' ä

MsgBox "Sie können keine Umlaute eingeben", vbInformation

KeyAscii = 0

Case 246 ' ö

MsgBox "Sie können keine Umlaute eingeben", vbInformation

KeyAscii = 0

Case 252 ' ü

MsgBox "Sie können keine Umlaute eingeben", vbInformation

KeyAscii = 0

Case Else

MsgBox "Ihre Eingabe war korrekt!", vbInformation

End Select

End Sub

Ich habe das jetzt nur mal für die kleinen Umlaute gemacht... Damit kann man aber auch recht einfach die Eingabe aller Umlaute, Sonderzeichen, Steuerzeichen... verhindern. Man muß halt nur die einzelnen Fälle anpassen. Man kann auch recht gut mit < und > arbeiten. Das KeyAscii = 0 verhindert, daß das Zeichen angezeigt wird.

Ich hoffe mal, es hat geholfen.

Vielen Dank für deine Hilfe!!!! Schönen Tag noch

Gruss

JP

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.