Bonjour à tous,

Je teste actuellement l'extension DATAFORM.

A l'utilisation j'ai le message d'erreur suivant :

"valeur ou type de données incorrect (e)
type de données incohérent"
|
 *datetime1 = DateValue(txtCampo.Text)*

_sur http://extensions.services.openoffice.org/fr/project/DataForm je trouve l'info suivante :_

|


     error with date value
     
<http://extensions.services.openoffice.org/fr/project/DataForm#comment-2627>

"I encountered a problem with incorrect date values. Will stop the macro and display the source code... I found a simple solution, show an error message and delete the contents of cell

|Function salvaRecord as Boolean
.....|

change these lines
|
 datetime1 = DateValue(txtCampo.Text)
 cella.Value = datetime1
|
with these other
|
If IsDate(txtCampo.Text) = False Then
 MsgBox("Valore Data Errato")
 cella.setString("")
Else
 datetime1 = DateValue(txtCampo.Text)
 cella.Value = datetime1
EndIf"|
| Lors du copier/coller de la syntaxe, j'ai le message suivant : "vous devrez redémarrer le programme après cette modification, poursuivre ?"

et là, "impossible de fermer la fenêtre, lorsque BASIC est en cours d'exécution."

Un grand merci pour votre aide

Christophe






|

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@fr.openoffice.org
For additional commands, e-mail: users-h...@fr.openoffice.org

Répondre à