Visual Basic: How to add 'a remark in the code'

Chiboy

Diamond Member
Jun 4, 2002
3,814
6
81
Say this is the code

Private Sub Command1_Click()
text2.Text = Val(Text1.Text) * 1.61
End Sub

That is it now say I wanted to add my name Umair R. in their as a 'remark' how do I do that, note: first time playing with VB...
 

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
Do you mean a comment?
Code:
'this code is by Chilboy
'Copywrite when ever

Private Sub Command1_Click()
text2.Text = Val(Text1.Text) * 1.61
End Sub
 

Chiboy

Diamond Member
Jun 4, 2002
3,814
6
81
Originally posted by: jonmullen
Do you mean a comment?
Code:
'this code is by Chilboy
'Copywrite when ever

Private Sub Command1_Click()
text2.Text = Val(Text1.Text) * 1.61
End Sub

Yes perfect thanks!
 

DWW

Platinum Member
Apr 4, 2003
2,030
0
0
heh never heard of it called a "remark" ;)

funny how the book you are reading teaches sub's before comments

edit: sorry you're using VB... no knowledge of sub is needed /runs
 

DT4K

Diamond Member
Jan 21, 2002
6,944
3
81
Originally posted by: DWW
heh never heard of it called a "remark" ;)

funny how the book you are reading teaches sub's before comments

edit: sorry you're using VB... no knowledge of sub is needed /runs

Some languages use the word "REM" to specify a comment line.
One of my biggest pet peeves about VB was the lack of /* */