webForumDet fria alternativet

MsgBox

1 svar · 170 visningar · startad av xcalibrate

xcalibrateMedlem sedan aug. 2002136 inlägg
#1

Koden:
If Text1.Text = "" Then
MsgBox "MSG", 64, "Fyll i Alla fält tack"
End If
'Om man inte fyllt i text1 här vill jag inte att MsgBox skall komma upp efter MsgBox "MSG" kommit upp, hur gör jag?
MsgBox Text2.Text, 64, Text1.Text

ViktorMedlem sedan aug. 20021 752 inlägg
#2

Såhär,

If Text1.Text="" Then
   MsgBox "MSG",64,"Fyll i Alla fält tack"
ELSE
   MsgBox Text2.Text, 64, Text1.Text
END IF

Nu kommer bara 1 medelande ruta visas.

/Viktor

134 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
130 ms — hämta tråd, inlägg och bilagor (db)