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.

Werte in mehreren Formularen verwenden

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe seit Jahren nichts mehr in VB6 programmiert und stehe nun ziemlich auf dem Schlauch. :schlaf:

Folgendes Problem:

Ich habe in Formular1 Textfelder und Comboboxen erstellt und benannt. Deren Inhalt soll nun auf Formular2 in Labels angezeigt werden.

Wo und wie muss ich nochmal die Variablen deklarieren, damit dies möglich ist?

Im frm1, frm2 oder in einem Modul?

PS:

Wie kann ich in VB das Copyright-Zeichen eingeben? Alt+169 funktioniert nicht.

Wo und wie muss ich nochmal die Variablen deklarieren, damit dies möglich ist?

garkeine.

Form2.Show 'Form2 anzeigen

Form2.Label1.Caption = Me.Text1 'direkt zuweisen

Form2.Label2.Caption = Me.Combo1 'direkt zuweisen

tuts z.b. auch.

copyright-zeichen z.b.:

Form2.Label2.Caption = Chr(169)

s'Amstel

  • Autor

Vielen Dank! :uli

Für diesen Zweck reicht das, ich möchte aber mit Variablen arbeiten.

Wie macht man das?

Ich habe Textfelder, deren Inhalt Variablen zugewiesen wurde. Die Inhalte der Variablen sollen nun in Labels ausgegeben werden.

  • Autor

Die Variablen habe ich unter Option Explicit deklariert, ausserhalb irgendwelcher Funktionen. Die Funktionen füllen die Variablen nur.

Option Explicit

Dim intZahl As Integer
Dim curSumme As Currency
Public strName As String [/PHP]

Das Public funktioniert nicht.

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.