1.建立三个Form,命名为:Form1, Form2, Form3;
2.任意创建或者拖拽一个Table。
3.为三个Form分别添加Button。
4.将Table托拽到Form1>Data Source中
5.为Form1添加Grid并将需要字段拖拽到Grid中:
…只是练习,所以做的简陋,见谅,低调!阿弥陀佛!!!
6. Form1>Methods
public class FormRun extends ObjectRun
{
FormRun formRun;
zwStudents student;
}
str testFunc(str _b = "abcd")
{
return _b;
}
public void init()
{
super();
}
public void create()
{
Args args;
FormRun formCreate;
Container con;
Common com;
;
con = [6,7];
args = new Args();
args.name(formstr(Form2));
args.caller(formRun);
select firstonly student
where student.StudentId == "123";
args.record(student);
formCreate = classfactory.formRunClass(args);
formCreate.init();
formCreate.run();
formCreate.wait();
}
Design>Button>Methods
void clicked()
{
element.create();
super();
}
7. Form2>Methods
public class FormRun extends ObjectRun
{
FormRun formRun;
zwStudents student;
}
public void init()
{
student = element.args().record();
super();
}
public void create()
{
Args args;
FormRun formCreate;
;
info(student.StudentId);
args = new Args();
args.name(formstr(Form3));
args.caller(formRun);
args.record(student);
formCreate = classfactory.formRunClass(args);
formCreate.init();
formCreate.run();
formCreate.wait();
}
Design>Button>Methods
void clicked()
{
element.create();
super();
}