עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

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

Featured Replies

פורסם

שלום לכולם,

התחלתי ללמוד קצת VB ויש לי שאלה קטנה.

אני רוצה שאם יכניסו מילה וילחצו על "שלח" לצורך העיניין, אז תקפוץ לי messagebox, מעיין blacklist כזה של מילים שאי אפשר להריץ.

התחלתי ככה:

 If TextBox1.Text = "blabla" Then
MessageBox.Show("אסור להקליד")

איך אני מוסיף עוד מילים שאסור ?

תודה.

פורסם

אם מדובר במספר קטן של מילים, אתה יכול פשוט לעשות כמה if-else.

אם לא, אתה יכול ליצור מערך שמחזיק את כל המילים הבעייתיות, ואז לבדוק (באמצעות לולאה פשוטה) אם המילה מופיעה במערך הזה.

פורסם
  • מחבר

או.קיי הבנתי איך אני עושה את זה,

פשוט אני רושם OR כאילו

if textbox1.text = "blabla" OR if textbox1.text= blabla2"

פורסם

http://www.dr-vb.co.il/ , אחד האתרים הטובים ל VB.

אבל נראה לי עדיף לך שפה אחרת , אולי C# ...

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

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.