Jodi_the_g
Member
Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
|
Been a while since I worked out of .net but need a multi platform app so using realbasic.
With DB's how do you get the next primary key
code:
// add to database
dim dr as new DatabaseRecord
dr.Column("date")=trim(RecordDate.text)
dr.Column("glider")=trim(GliderCombo.text)
dr.BooleanColumn("ground")=sground
dr.BooleanColumn("mountains")=smountain
dr.Column("event")=trim(EventBox.text)
dr.Column("length")=trim(LengthBox.text)
dr.Column("description")=trim(DescriptionBox.text)
gliderdb.InsertRecord "record", dr
gliderdb.Commit
I can remember doing it years ago and EOF commands ring a bell just can not rememeber.
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
EOF means end of file, which is what you don't want.
You need to know record pointer syntax. Never used that language.
|
Jodi_the_g
Member
Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
|
Me either Ian its close to c++ so am winging it.
It just the inbuilt database for it is limited funtion wise, so everything has to be manual
|
MikeLamb
Member
Registered: 23rd Sep 03
Location: Crowthorne Drives: Veccy SRI
User status: Offline
|
somethig lie movenext??
|