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.

Visual Basic Problem

Empfohlene Antworten

Veröffentlicht

Beispiel : Ich habe 4 var. Test1, Test2, Test3 und Test4.

Nun möchte ich z.B. alle 4 Var. mit Hilfe einer Schleife deaktivieren (enabled = Fales)

Ich habe es so versucht :

for n = 1 to 4

Text(n).enabled = False

next n

Aber das läuft nicht. Hat jemand ne Idee wie man das lösen könnte ohne alle Var. einzelnt anzusprechen ???

Danke im voraus

Elmar

Wenn du z. B. 4 Textfelder hast mit dem Namen text1, text2, ...3, ...4, dann gibt es die Möglichkeit in den Eigenschaften den Textfeldern einen Index einzutragen. Mit diesem Index kann man die Textfelder dann ansprechen.

Dann würde die Schleife so aussehen, wenn der Index von 0 bis 3 wär:

--------------------------

for i = 0 to 3

i.enabled = false

next i

--------------------------

So, ich hoffe, ich habe dir weitergeholfen!

------------------

Bis dann, Ciao!

TG

Korrekte Krass ... danke Kollege !!!

Vielen Dank

Cya Elmar ;-)

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.