V4MD Info about setBlank()

info at vallemediatime.com info at vallemediatime.com
Thu Oct 6 21:51:49 CDT 2005


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


More information about the Valentina mailing list