Dim totNr,totStr,mynumber As String
totStr="38,8"
Msgbox(totStr,"Foutmelding",cMsgboxOK,cMsgboxHand)
mynumber=edtBoutHoogte.Text ' mynumber ="45,7"
Msgbox(mynumber,"Foutmelding",cMsgboxOK,cMsgboxHand)
' this goes wrong result=-69 instead of -6,9
totNr=totStr-mynumber
Msgbox(totNr,"Foutmelding",cMsgboxOK,cMsgboxHand)
grCor
totStr="38,8"
Msgbox(totStr,"Foutmelding",cMsgboxOK,cMsgboxHand)
mynumber=edtBoutHoogte.Text ' mynumber ="45,7"
Msgbox(mynumber,"Foutmelding",cMsgboxOK,cMsgboxHand)
' this goes wrong result=-69 instead of -6,9
totNr=totStr-mynumber
Msgbox(totNr,"Foutmelding",cMsgboxOK,cMsgboxHand)
grCor