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.NET: 2-dimensionales Array übergeben??

Empfohlene Antworten

Veröffentlicht

Moinsen,

ick heb da nen problem:

Ich hab nen 2-dimensionales Array namens "contents()()".

Jetzt möchte ich dieses Array an eine Funktion innerhalb der Klasse "sourcefile" übergeben.

Der Funktionsprototyp sieht folgendermaßen aus:

Public Function Write(ByVal contents()() As String) As String()
Aufrufen tue ich die Funktion so:
Dim ContentTableType() As String = {"testdata"}

Dim contents()() as String = {ContentTableType}

Dim source As New sourcefile()

Dim result as String

result = source.Write(contents(0)())

Jetzt kriege ich an folgender Stelle immer einen Fehler:

source.Write(contents(0)())

Fehlertext: "Die Indexanzahl ist kleiner als die Anzahl der Dimensionen des indizierten Arrays."

Kann mir irgendjemand sagen, was ich falsch mache?? Ich bin am verzweifeln!!!!:confused: :confused: :confused:

BTW: Arbeiten kann ich mit dem Array problemlos....Falls jetzt ne Bemerkung kommen sollte, das die Dimensionierung nicht ok wäre... :floet:

HAT SICH ERLEDIGT!!!! BITTE LÖSCHEN!!!!

  • 1 Jahr später...
HAT SICH ERLEDIGT!!!! BITTE LÖSCHEN!!!!

Hmm. Und wie hat sich das nun genau erledigt? (Dass man den Usern das jedesmal von Neuem aus der Nase ziehen muss :()

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.