Crash or Error 1 ?

Thierry Nauze huancaya at wanadoo.fr
Mon May 10 17:58:47 CDT 2004


Le 10 mai 04, à 17:29, Ruslan Zasukhin a écrit :

> On 5/10/04 3:27 PM, "Thierry Nauze" <huancaya at wanadoo.fr> wrote:
>
>> 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"
>
> May be you have forget change of RB variable zeBase.mEvenNoms.type ?


In the boEvenNoms class, there is the property :
		type as vString
The boEvenNoms method is :
   		name = "evenNoms"
   		id = new vUMedium("id",kV_Unique)
   		nom = new vVarChar("nom",96,"French")
		type= new vString("type",4,"ASCII")

FOR THE UPDATE :
In a method, the update (to add the field) :
		...
    	 	champ= new vField
     		champ=zeBase.mEvenNoms.CreateField("type", 
kv_TypeString,4,"ASCII")

in next method,
		...
		 curseur.StringField("type").value="xxx"
             	res=curseur.Update()
	works fine

And in the next method,
		...
         		 zeBase.mEvenNoms.type.value="type"
	crash !

Why ?

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



More information about the Valentina mailing list