0%
创建一个空的record
1 2 3 4 5 6 7
| local record &rec = createRecord(record.table);
&rec.field.value = "123"; &rec.field.value = "abc";
&rec.insert();
|
获取Page页面的record
1 2 3 4 5 6
| local record &rec = getRecord(record.table);
&rec.field.value = "123"; &rec.field.value = "abc";
&rec.update();
|
获取record中某个字段的值
1 2
| &rec.getfield(field.name).vlaue ;
|
增、删、改record的一条数据
1 2 3 4 5 6 7 8 9 10 11 12 13
| local record &rec = createRecord(record.table);
&rec.field.value = "123"; &rec.field.value = "abc";
&rec.insert();
&rec.delete();
&rec.update();
|
根据KEYS获取对应的record记录
1 2 3 4 5 6 7
| local record &rec = createRecord(record.table);
&rec.key1.value = "123"; &rec.key2.value = "abc";
&ret = &rec.SelectByKey();
|