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.

Need help bei simplen feld + rnd funktion

Empfohlene Antworten

Veröffentlicht

hallo zusammen ich hab vor ein memory programm zu schreiben meine kentnisse in vb sind aber noch nich so weit vortgeschritten =) ( lern vb seit 2 wochen)

also zunächst einmal möchte ich ein feld(23) mit zufallszahlen zwischen 1 und 24 füllen hierbei darf jedoch keine zahl mehr als einmal vorkommen

nach diesen zufallszahlen sollen meine bilder (0.bmp -23.bmp) in ein weiteres feld geladen werden und diese dann ausgegeben werden

mein vorschlag ist:

Private Sub Mischen_Click(Index As Integer)

Dim random As Integer

Dim Y As Integer

Dim a As Integer

Dim zufall(23)

For a = 0 To 23

Randomize

Y = Int((24 * Rnd) + 1)

zufall(a) = Y

Next

For X = 0 To 23

zufall(Y) = "D:\schule\prog\vb memorie projekt\Memorie2.2\bilder\" & (X) & ".bmp"

Bild(X).Picture = LoadPicture(bilder(Y))

Sleep 200

Next

Sleep 2000

End Sub

hilfe ist immer willkommen danke schonma

gruß don-kanalie

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.