You are not logged in.

Peter

Trainee

  • "Peter" is male
  • "Peter" started this thread

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

1

Sunday, February 1st 2009, 9:39pm

Exception wird nicht ausgelöst

müsste folgender Code nicht eine Exception auslösen?

Jabaco Source

1
2
3
4
5
Public Sub Command1_Click()
   Dim A As Integer
   A = 1 / 0
   Msgbox A
End Sub


Grüße ... Peter

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

2

Sunday, February 1st 2009, 10:14pm

Jabaco Source

1
2
3
4
5
Public Sub Command1_Click()
   Dim A As Integer
   A = 1 \ 0
   Msgbox A
End Sub

Peter

Trainee

  • "Peter" is male
  • "Peter" started this thread

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

3

Sunday, February 1st 2009, 10:21pm

Ah! 8o Danke schön!

Grüße ... Peter

Peter

Trainee

  • "Peter" is male
  • "Peter" started this thread

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

4

Sunday, February 1st 2009, 11:56pm

Jabaco Source

1
A = 1 \ 0

da muss ich doch noch mal nachfragen:
unter VB6 sind beide Schreibweisen gültig (1/0 und 1\0). Was macht denn 1/0?

Grüße ... Peter

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

5

Monday, February 2nd 2009, 12:05am

Jabaco Source

1
2
MsgBox 1 / 0 ' Division gibt dir NaN(Not a Number) zurück
MsgBox 1 \ 0 ' Integerdivision liefert dir eine ArithmeticException

Peter

Trainee

  • "Peter" is male
  • "Peter" started this thread

Posts: 69

Date of registration: Nov 24th 2008

Location: Cologne, Germany

Occupation: Second Vice President of Distributed Junk and Trash Development

  • Send private message

6

Monday, February 2nd 2009, 12:09am

danke für die Erklärung!

Grüße ... Peter

Rate this thread
WoltLab Burning Board