V4MD: problem with addRecord for method field (unique)

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Feb 8 11:04:37 CST 2005


On 2/8/05 10:26 AM, "info at vallemediatime.com" <info at vallemediatime.com>
wrote:

> with this code:
> 
> set fldRef = addField(gDB, StudenteCorsoRef, "StudentCorso", #kTypeVarChar,
> 504, "concat( Studente_PTR, Corso_PTR)")
> setFieldFlag(gDB, fldRef, 2, TRUE) -- correct
> 
> is not possible (in any way) to addRec at the cursor
> I get always the error 344 and so the virtual field (with unique flags) is
> useless.
> 
> I remember you that I need to check the newRec of a table STUDENTICORSI with
> two fields:
> Studente_PTR   Corso_PTR
>       1                      1             ok
>       1                      2             ok
>       2                      1             ok
>       1                      1             not ok = duplicate record
> 

I see what you need.

The above code MUST work.
Open db in the VAPP.
Check your fields. Check your flags that show VAPP.

Directly in the VAPP try to add record.
You must be able add first record, and second the same will refuse.

If no, you can send me this db, I do the same in VAPP.


> I think that Valentina can do this but I can't find the manner.
> I read your docs and try your example but this case don't appear.
> I hope in another your help.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina mailing list