V4MD Info about setBlank()

info at vallemediatime.com info at vallemediatime.com
Thu Oct 6 21:56:53 CDT 2005


Sorry my copy and paste mistake in this lines:

  curTable.setBlank()
  curTable.addRecord()

become:

  Person.setBlank()
  Person.addRecord()

Paolo


----- Original Message -----
From: <info at vallemediatime.com>
To: "Valentina Developers" <valentina at lists.macserve.net>
Sent: Thursday, October 06, 2005 9:51 PM
Subject: V4MD Info about setBlank()


Hi list,
I need to better understand the use of Table.setBlank method

I've tried this:

on CreateTable_Person
  Person = gDb.createTable("Person")
  Person.createUShortField("fPerson_ID", [#fUnique])
  Person.createStringField("fPerson_Name", 20)
  Person.createByteField("fPersonType_Ref")
end

on AddRecordsTo_Person
  Person = gDb.table(Person)
  fPerson_ID = Person.field("fPerson_ID")
  fPerson_Name = Person.field("fPerson_Name")
  fPersonType_Ref = Person.field("fPersonType_Ref")
  curTable.setBlank()
  curTable.addRecord()
end

When I add a record I want to set all Person.fields to EMPTY... is this
script right or is better someother code?

Thanks
Paolo
_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina



--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005




More information about the Valentina mailing list