[V4MD] unique between two fields

Ivan Smahin IvanSmahin at public.kherson.ua
Sat Nov 5 15:51:45 CST 2005


Hello info,

Saturday, November 5, 2005, 3:36:13 PM, you wrote:

ivc> Hi Ivan,

ivc> I've not better understand, sorry
ivc> my code for create table and fields is a bit different:

ivc> eg
ivc> Discipline = gDb.createTable("Discipline ")
ivc> Discipline .createStringField("Discipline_Name",  36)
ivc> Discipline .createStringField("Discipline_Year",  9)  -- (eg  2005-2006)

ivc> I've tried to modify this with your useful help but I get error...

The main idea is:
You need the method which is unique and combine both fields.

So you need something like
Discipline.createStringField("Discipline_NameYear",  40, kUnique,
"Discipline_Name || Discipline_Year" )

-- 
Best regards,
 Ivan                            mailto:IvanSmahin at public.kherson.ua



More information about the Valentina-beta mailing list