problem with making a field unique
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Oct 17 10:27:52 CDT 2003
on 10/17/03 6:02, Dave Parizek at dave at Parizek.com wrote:
Hi Dave,
> Using Valentina for RealBasic 5, with Valentina Utilities added to my project:
>
> I have a base object with the following constructor:
>
> Sub bo luConditionNote
> name = "luConditionNote"
>
> ConditionNote= new VVarChar("ConditionNote",150,kV_Unique)
> //ConditionNote.Unique=TRUE
> End Sub
>
> When I run in the RealBasic IDE I get this error:
>
> "* Parameters are not compatible with this function in
> boluConditionNote.boluConditionNote, line 3:
> ConditionNote= new VVarChar("ConditionNote",150, kV_Unique)"
I think you have miss that constructor of VarChar on third place expect to
get Language
ConditionNote= new VVarChar( "ConditionNote", 150, "English", kV_Unique)"
> So I changed the constructor replacing "kV_Unique" with the digit 2,
> still the same error.
>
>
> So I changed the constructor again, to this:
>
> Sub bo luConditionNote
> name = "luConditionNote"
>
> ConditionNote= new VVarChar("ConditionNote",150)
> ConditionNote.Unique=TRUE
> End Sub
>
> and no error on building, but the field does not behave as it is
> supposed to. I am able to add duplicate values to it.
Hmm, this way I'd expect to work...
Strange.
--
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