NumberDilog et DateDialog

ciginfo

Well-Known Member
Licensed User
Longtime User
Bonjour,
When i use DateDialog or NumberDialog i cannot go working Cancel Button.
There are 3 Buttons : "Yes", "No", "Maybe". I know how to change the name or how to erase a button.
"Yes" works fine but "No" and "maybe" have the same action than "Yes"
1°) How to do to have cancel action with "No" for example?
2°) what is the role of the button "Maybe"?

Thank you

François
 

ciginfo

Well-Known Member
Licensed User
Longtime User
Thank you for your rapid answer, but i don't know how to obtain cancelling.
Example

Dim nd As NumberDialog
nd.Digits = 2
nd.Number = 45
nd.Decimal = 0
nd.ShowSign = False
ret = nd.Show("Entrez la longueur du col en mm", "OK", "", "Cancel", Bmp)

col = nd.number 'Valeur recuellie par le NumberDialog
If col < 5 OR col > 50 Then 'Erreur si mauvais mesure col
Msgbox("la longueur du col doit être entre 5 et 50 mm", "Attention")
Return
End If

Il I click on "OK" or on "Cancel" i obtain the same result, nd.number. I want when I click on "Cancel" a result null and NumberDialog disappears.

Excuse my bad english, i'm french.
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
This is rhigt? i don't think, it doesn't works

If ret = "OK" Then
col = nd.number
LblCol.Text = col & " mm"
Else
Return
End If
 
Upvote 0
Top