I've looked at the Database examples in Gambas2. However, I don't see how to set a field as a foreign key when creating a table. I'm able to set a field as a table's primary key using:
JHTable.PrimaryKey = ["_id"]
after:
JHTable = databaseConnection.Tables.Add("country")
JHTable.Fields.Add("_id", db.Serial)
I expected after keying in "JHTable." that ForeignKey would come up as an option for selection but it didn't.
Any ideas please?