📄 fnewtable.class
字号:
' Gambas class fileSTATIC PUBLIC Name AS StringSTATIC PUBLIC Type AS StringSTATIC PRIVATE $aType AS String[]STATIC PUBLIC FUNCTION Run(OPTIONAL sTable AS String, OPTIONAL sType AS String, OPTIONAL aType AS String[]) AS Boolean Name = sTable Type = sType $aType = aType RETURN NOT FNewTable.ShowModal()ENDPUBLIC SUB _new() IF $aType THEN cmbType.List = $aType.Join("\n") IF Type THEN cmbType.Text = Type ENDIF lblType.Text = Type IF Name THEN ME.Title = ("Rename table") cmbType.Visible = FALSE ELSE ME.Title = ("Create table") ENDIF lblTitle.Text = ME.Title txtName.Text = Name txtName.SelectionENDPUBLIC SUB btnOK_Click() Name = Trim(txtName.Text) IF NOT Name THEN Message.Warning(("Please enter a table name.")) txtName.SetFocus RETURN ENDIF Type = cmbType.Text ME.Close(TRUE)ENDPUBLIC SUB btnCancel_Click() ME.Close()END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -