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.

Blöde Frage!!

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

ich hab folgendes Problem. Ich habe eine Funktion, die ich in meinem Programm oft brauche. Sie dient zum befüllen eines Listviews. Die Übergabe von Parametern an die Funktion ist ja keine Problem. Mein Problem liegt darin, der Funktion mitzuteilen, mit welcherm Listview auf welchem Formular sie arbeiten soll.

ich habe in den Funktionskops eingetragen:

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

public function anzeige(arg1 ,arg2 ,arg3 ,arg4 ,arg5, byRef Liste AS ListView)

end function

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

wenn ich aber dann die funktion aufrufe mit:

anzeige(arg1 ,arg2 ,arg3 ,arg4 ,arg5 , me.liste)

dann kriege ich immer einen Syntax-Fehler.

Kann mir hier jemand halfen?

danke schon mal!

Schreib bei deinem Aufruf mal

[B]Call[/B] anzeige(arg1 ,arg2 ,arg3 ,arg4 ,arg5 , me.liste)

Bei mir funktioniert das so.

(VB6)

Funktionen haben einen Rückgabewert, zum Beispiel:


Public Function summe(byVal intSummand1 as Integer, byVal intSummand2 as Integer) [b]as Integer[/b]

    summe = intSummand1 + intSummand2 'Zuweisung des Wertes zu der Funktion

End Function

Möchtest Du keine Funktion mit Rückgabewert haben, so empfielt sich eine Sub (Prozedur), oder Du rufst wie schon Blondi schrieb die Funktion mit "call" auf.

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.