forward
global TYPE simple_demo FROM application
ENDTYPEEND forward
global TYPE simple_demo FROM application
string appname ="simple_demo"ENDTYPE
global simple_demo simple_demo
ON simple_demo.CREATEENDON
event OPEN;
OPEN( simple_demo_main )END event
SRA文件是转换到类对迁移方法,使用开始应用:
public partial class _simple_demo :System.Web.UI.Page{protectedvoid Page_Load(object sender, EventArgs e){
Server.Transfer("simple_demo_main.aspx");
}}
转换Window对象(.SRW 文件)到ASPX
SRW文件是窗口的源文件。它有形式和荣内的项目的描述,及也事件和方法。SRW文件被转换到ASPX。
考虑简单形式的例如对一个控制元件:
$PBExportHeader$simple_demo_main.srw
forward
global TYPE simple_demo_main FROM window
ENDTYPETYPE b_button FROM commandbutton WITHIN simple_demo_main
ENDTYPEEND forward
global TYPE simple_demo_main FROM window
INTEGER width =800INTEGER height =1200BOOLEAN titlebar =TRUE
string title ="simple_demo"
b_button b_button
ENDTYPE
global simple_demo_main simple_demo_main
ON simple_demo_main.CREATE
this.b_button =CREATE b_button
this.Control[]={this.b_button}ENDONON simple_demo_main.destroy
destroy(this.b_button)ENDONTYPE b_button FROM commandbutton WITHIN simple_demo_main
INTEGER x =400INTEGER y =400INTEGER width =200INTEGER height =120
string text ="Show"ENDTYPE
event clicked;
END event
声明控制被转换到设计器类:
public partial class _simple_demo_main
{protectedSystem.Web.UI.HtmlControls.HtmlForm simple_demo_main;
protectedSystem.Web.UI.WebControls.Button b_button;
}
public partial class _simple_demo_main :System.Web.UI.Page{protectedvoid Page_Load(object sender, EventArgs e){}protectedvoid b_button_Click(object sender, EventArgs e){}}
SQLWays节省属性的大小和组建的位置像可转换的PowerBuilder 应用:
PowerBuilder Application Window
ASP.NET Pages
转换选单(.SRM)到标准的用户控制
SRM文件是选单源文件。这些有元素和事件描述。这里是选单对一个元素例如为您的考虑:
$PBExportHeader$simple_menu.srm
forward
global TYPE simple_menu FROM menu
ENDTYPETYPE m_about FROM menu WITHIN simple_menu
ENDTYPEEND forward
global TYPE simple_menu FROM menu
ENDTYPE
global simple_menu simple_menu
ON simple_menu.CREATE
simple_menu=this
CALL super::CREATE
this.m_about=CREATE m_about
this.Item[UpperBound(this.Item)+1]=this.m_about
ENDONTYPE m_about FROM menu WITHIN simple_menu
ENDTYPEON m_about.CREATECALL super::CREATE
this.text ="&About"ENDON
event clicked;OPEN(simple_about)END event
SRM文件被转换到System.WEB.UI.UserControl类。
public partial class _simple_menu :System.Web.UI.UserControl{protectedvoid Page_Load(object sender, EventArgs e){}}
public partial class _simple_demo_main
{protectedSystem.Web.UI.WebControls.GridView dw_1;
protectedSystem.Web.UI.WebControls.SqlDataSource d_simple_demo;
}