• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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

Chiboy

Diamond Member
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...
 
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
 
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!
 
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
 
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 /* */
 
Back
Top