[V4MD 2] Primary key

info at vallemediatime.com info at vallemediatime.com
Fri Apr 8 16:54:54 CDT 2005


Hi Ruslan.
I need a simple help (the docs not always help me)

in V1
set StudentRef = MakeNewBaseObject(gDB, "STUDENT")
set fldRef = addField(gDB, StudentRef , "sF1", #kTypeString, 36)
setFieldFlag(gDB, fldRef, 2, TRUE) -- Primary key

in V2
StudentRef = gDb.createTable("STUDENT")
and now?

I've tried with this bad line but don't works:
StudentRef.createStringField("sF1", 24, [#fUnique])

Tnx Paolo


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005



More information about the Valentina mailing list