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.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe vier CComboBox’s und nun will ich jetzt alle vier abfragen bzw. wenn der Benutzer in allem vier was auswählt irgendwas zurück geben


void ClalaView::OnSelchangeComboJobAuswahl()
{
int Item_1 = m_cb1.GetCurSel();
int Item_2 = m_cb2.GetCurSel();
m_lbJBeschreibung.ResetContent();
if(Item_1== 0 && Item_2 == 0){

irgendwas
}
if(Item_1 == 1){
noch was
}
}
[/PHP]

Danke für Hilfe

  • Autor
Originally posted by Klotzkopp

Und wie lautet deine Frage?

Wie man seht versuche ich es mit


if((Item_1 == 0) && (Item_2 == 0)){
m_lbJBeschreibung.AddString("ein String");
}
[/PHP]

abfangen, kriege zwar keinen Fehler aber auch tut sich nicht.

Solange ich nur aber einen CcomboBox abfrage funk wunder bar

[PHP]
if(Item_1 == 0){
m_lbJBeschreibung.AddString("ein String");
}

meine Frage - > warum, wo liegt Fehler ??

Vielleicht stimmt die Bedingung nicht und der Fall tritt gar nicht ein, den Du abfrägst. Stopp doch mal vor der IF-Abfrage mit dem Tracer und schau Dir den Inhalt von Item_1 und Item_2 nochmal genau an.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.