Writing tips and writing guidelines for students,case study samples, admission essay examples, book reviews, paper writing tips, college essays, research proposal samples
Thursday, 13 December 2018
'Software Architecture Code for Wrapper Class\r'
'Wrapper to connect two applications with different architectures public con As ADODB. Connection Public rs As ADODB. Recordset Dim str As String snobbish triggerman Command1_Click() Command1. Enabled = ridiculous Command2. Enabled = rancid Command3. Enabled = turned Command4. Enabled = True right con = cutting ADODB. Connection Set rs = New ADODB. Recordset con. Open ââ¬Å"Provider=SQLOLEDB. 1;Integrated security=SSPI;Persist Security Info=False;initial Catalog= disperseââ¬Â str = ââ¬Å"insert into lag values(ââ¬Â & adenosine monophosphate; school text1. schoolbook &type A; ââ¬Å",ââ¬Â & deoxyadenosine monophosphate; text edition2.Text & amp; ââ¬Å"ââ¬Ë, ââ¬Â & Text3. Text & ââ¬Å",ââ¬Â & Text4. Text & ââ¬Å",ââ¬Â & Text5. Text & ââ¬Å"ââ¬Ë)ââ¬Â On computer error GoTo Delete_Error con. Execute (str) MsgBox ââ¬Â Record added Successfullyââ¬Â Text1. Text = ââ¬Å"ââ¬Â Text2. Text = ââ¬Å"ââ¬Â Text3. T ext = ââ¬Å"ââ¬Â Text4. Text = ââ¬Å"ââ¬Â Text5. Text = ââ¬Å"ââ¬Â Text1. SetFocus Exit wedge heel Delete_Error: MsgBox ââ¬Å"This record cannot be Added. Error code = ââ¬Â _ & Err. Number & vbCrLf & Err. Description, _ vbCritical, ââ¬Å"Cannot Update Databaseââ¬Â polish off milling machinery mysterious sub Command2_Click() Command1. Enabled = False Command4. Enabled = False Command6.Enabled = False If (Adodc1. Recordset. BOF) Then Adodc1. Recordset. MoveLast Else Adodc1. Recordset. MovePrevious End If End Sub Private Sub Command3_Click() Command1. Enabled = False Command4. Enabled = False Command6. Enabled = False If (Adodc1. Recordset. EOF) Then Adodc1. Recordset. MoveFirst Else Adodc1. Recordset. MoveNext End If End Sub Private Sub Command4_Click() Command4. Enabled = False Command1. Enabled = True Command2. Enabled = False Command3. Enabled = False Command7. Enabled = False Text1. Text = ââ¬Å"ââ¬ÂText2. Text = ââ¬Å"ââ¬Â Text3. Text = ââ¬Å"ââ¬Â Text4. Text = ââ¬Å"ââ¬Â Text5. Text = ââ¬Å"ââ¬Â Text1. SetFocus End Sub Private Sub Command5_Click() Unload Me Form2. Show End Sub Private Sub Command6_Click() Text1. Text = ââ¬Å"ââ¬Â Text2. Text = ââ¬Å"ââ¬Â Text3. Text = ââ¬Å"ââ¬Â Text4. Text = ââ¬Å"ââ¬Â Text5. Text = ââ¬Å"ââ¬Â Text1. SetFocus End Sub SQL COMMANDS: create database AIR create table Staff(Staff_id int PRIMARY KEY not NULL,Staff_name varchar(20), Staff_age int, Salary int, Staff_address varchar(30)) ::Database AIR created successfully ::Table Staff creates successfully\r\n'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment