Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all again,
In that NOTES form that im creating, in some part i ask to the user if he wants to erase all the data from the textboxes, using this code.
But i have 2 problems.
with buttons OK and cancel or Yes and NO, if I click in any button, the rule runs... how could i get the users answer and run this rule just if the user choose YES or OK ?
And to erase the parameters, it takes +- 4seconds, i guess its too long! Why is that ? how could I improve this time ?
obs, im using this code inside a EXTERNAL RULE thats called in a GLOBAL FORM.
i = MessageBox.Show("Desenja mesmo apagar as notas ?" & vbCrLf & vbCrLf & "Obs.: Caso a opção ""0 - Notas em branco"" NÂO esteja" & vbCrLf & "selecionada, as notas típicas serão mantidas!" , "Confirmação:",MessageBoxButtons.OKCancel,MessageBoxIcon.Exclamation) If Not i Then Parameter("Nota1_ID1") = "" Parameter("Nota2_ID1") = "" Parameter("Nota3_ID1") = "" Parameter("Nota4_ID1") = "" Parameter("Nota5_ID1") = "" Parameter("Nota6_ID1") = "" Parameter("Nota7_ID1") = "" Parameter("Nota8_ID1") = "" Parameter("Nota9_ID1") = "" Parameter("Nota10_ID1") = "" Parameter("Nota11_ID1") = "" Parameter("Nota12_ID1") = "" Parameter("Nota1_ID2") = "" Parameter("Nota2_ID2") = "" Parameter("Nota3_ID2") = "" Parameter("Nota4_ID2") = "" Parameter("Nota5_ID2") = "" Parameter("Nota6_ID2") = "" Parameter("Nota7_ID2") = "" Parameter("Nota8_ID2") = "" Parameter("Nota9_ID2") = "" Parameter("Nota10_ID2") = "" Parameter("Nota11_ID2") = "" Parameter("Nota12_ID2") = "" End If
Thanks again!
Túlio Barata
IV 2013
Solved! Go to Solution.