A sub does functions but you can't input objects when in use i.e.
with functions:Code:Public Sub Stuff() Text1.Text = "Some stuff." End Sub
here it takes Text1.Text = "Some Stuff."Code:Public Function Stuff(TxtBox As TextBox, Txt As String) TxtBox.Text = Txt End Function then in a command button put: Stuff Text1, "Some Stuff."
Private is for the Dimmed object or sub/function etc. so it can only be used by that module/form etc.
Public is the oppisite.
------------------
DiGiTaIErRoR
VB, QBasic, Iptscrae, HTML
Quote: There are no stupid questions, just stupid people.




Reply With Quote