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.

VB Record type oder ähnlich

Empfohlene Antworten

Veröffentlicht

Hi Leuts!

Ich hab früher immer in Pascal programmiert und da konnte man sich mit Record eigene Datentypen basteln. das Ganze wollt ich jetzt auch in VB machen, aber so richtig hast nicht geklappt.

Mein globales Problem ist ja, daß ich ein einem Array verschiedene Arrays vom Typ X/Y Koordinaten speichern will, bis jetzt hab ich da noch nicht die Lösung gefunden.

Mit Record würd ich mir einfach nen Datentyp basteln, und dann ein Array of Datentyp bauen.

Ich hoffe irgendeiner versteht mich und kann mir weiter helfen. Danke :D

Moin!

Wenn ich Dich richtig verstanden habe, willst Du Dir einen Benutzerdefinierten Datentyp basteln. Probiere es mal mit der Type Anweisung:

Type MeinDatentyp

Text as String

Zahl as Long

Bild as Picture

...

End Type

Dann kannst Du einen Array mit diesen Datentyp erstellen. Das wäre die einzigste Möglichkeit (ich kenne keine andere) mit VB in einem Array mit unteschiedlichen Werten zu verwenden.

Ja hey das hört sich ja schon mal garnicht so schlecht an, und wie ging das dann mit den Arrays? Ich mein wie deviniere ich dann mein Array?

Danke :D

Wenn Du den Datentyp definiert hast erstellst Du einfach einen Array mit diesem ;) !

Dim MeinArray () as MeinDatentyp (für einen dynamischen)

oder

dim MeinArray(0 to 100) as MeinDatentyp (statischer Array)

Ja danke Das ist ja dann irgendwie so wie ich es aus pascal gewohnt war. :-) nur dynamisch ist natürlich noch genialer. :marine

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.