Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OlimilO1402 committed Jun 15, 2024
1 parent 2062b76 commit 44f4cd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@ then we actually show the modal-dialog with Show vbModal
```vb6
Public Function ShowDialog(Obj As Person, Owner As Form) As vbMsgBoxResult
Set m_Person = Obj.Clone
Me.Show vbModal, Owner
Me.Show vbModal, Owner
```
in this line the proecdure stops, all events will be done, and at the moment when the dialog will be closed, the next line in this procedure gets executed, now is the time to write all edits to the original object.
Now we just have to use the same procedure that was used when the Clone was created named "NewC"
```vb6
Public Function ShowDialog(Obj As Person, Owner As Form) As vbMsgBoxResult
Set m_Person = Obj.Clone
UpdateView
Me.Show vbModal, Owner
Obj.NewC m_Person
UpdateView
Me.Show vbModal, Owner
Obj.NewC m_Person
End Function
```

Expand Down

0 comments on commit 44f4cd1

Please sign in to comment.