Crash or Error 1 ?

Thierry Nauze huancaya at wanadoo.fr
Mon May 10 16:27:47 CDT 2004


This routine provokes an crash after the update of the base where the 
field 'type' was added.
	zeBase.mEvenNoms.setBlank
	zeBase.mEvenNoms.id.value=id
	zeBase.mEvenNoms.nom.value = "nom"
	zeBase.mEvenNoms.type.value = "type"
	zeBase.mEvenNoms.AddRecord

The responsible line is: 	zeBase.mEvenNoms.type.value = "type"


On the other hand, after the creation of a new database, it works 
correctly.


The following routine, makes the waited work but it produces an  error 
(=1).

dim travail as string
travail="INSERT INTO evenNoms (id,type,nom) VALUES 
("+str(id)+",'"+type+"','"+nom+"' )"
erreur=zeBase.sqlExecute(travail)
msgbox str(erreur)

Why?

--
Thierry Nauze			Saint-Denis de la Réunion



More information about the Valentina mailing list