Click to See Complete Forum and Search --> : [vbcode] - colour coding returns!
John
Jun 2nd, 2001, 08:05 AM
MsgBox "Hello"
If This=vbCool Then
Debug.Print "Yeah!"
End If
Enjoy!
John
SteveCRM
Jun 2nd, 2001, 08:30 AM
WooHoo! Thanks John! :D :D :D :D :D :D :D
parksie
Jun 2nd, 2001, 09:52 AM
Is there no end to this genius? :D
Now for C++ ;)
Matthew Gates
Jun 2nd, 2001, 10:17 AM
Private Sub Form_Load()
Select Case Command$
Case "/John"
Msgbox "THE BEST!"
Case "/James"
Msgbox "THE BEST!"
Case "/Owner"
Msgbox "The one and only, John, of course ;)"
Case "/Administrator"
Msgbox "John and James of course ;)"
Case "/Senior Editor"
Msgbox "Karl Moore :)"
End Select
End Sub
If
Then
Option
Optional
Explicit
Option Explicit
And
Or
End If
End Sub
Private
Sub
Remove
For
Next
Do
Loop
Array
InStr
InStrRev
Replace
Randomize
Timer
Split
Join
Hrmmm...Sub, Split, Join, InStrRev, Replace, Optional not colored? :rolleyes:
John, "Sub" should really color itself :).
Test Color in VBCode.
Optional
That works :D
Matthew Gates
Jun 2nd, 2001, 10:28 AM
'Hello World
Look at that John, adds in \'s :rolleyes:.
parksie
Jun 2nd, 2001, 10:32 AM
Remove "c:\win386.swp"
'Remove sFile
Rem Here is a comment
' Here is a multi _
line comment
Oh, and can you take off the initial newline after the tag's been opened? It makes it really unreadable getting round it :(
John
Jun 2nd, 2001, 11:00 AM
Fixed everything so far.
But no multiline stuff - that's asking a bit too much I think :)
John
parksie
Jun 2nd, 2001, 11:05 AM
Okay, no problem ;) I don't even think anyone uses them coz it looks better to just stick a ' at the beginning of each line :D
Matthew Gates
Jun 2nd, 2001, 11:27 AM
'John's fixed it!
^Test for '2
Matthew Gates
Jun 2nd, 2001, 11:29 AM
Hehe, good job John! You made it take the first comment (') into consideration and ignore all after it! :D
Matthew Gates
Jun 2nd, 2001, 11:31 AM
Private Sub Form_Load()
'code
End Sub
Just gotta fix that "End Sub" John, it colors the first for "Private Sub", but not the last one :(.
John
Jun 2nd, 2001, 11:46 AM
Just add a space or newline before the closing [/Highlight] tag.
John
Sastraxi
Jun 2nd, 2001, 01:34 PM
Why Not?
Matthew Gates
Jun 2nd, 2001, 01:46 PM
'no space
Private Sub
End Sub
'space
Private Sub
End Sub
'newline
Private Sub
End Sub
Static
Jun 4th, 2001, 10:21 AM
For x = 1 to 10 ' this is a "test"
'everyone else got to test it...I felt left out!
Static
Jun 4th, 2001, 10:24 AM
hhmmmm
had to make sure it was Capital letter!
for x = 1 to 10
For x = 1 to 10
private
Private
John
Jun 4th, 2001, 12:17 PM
Copy and paste from VB and you'll be fine then :)
John
parksie
Jun 4th, 2001, 12:27 PM
What's VB? Does anyone still use that? :confused:
:p
Matthew Gates
Jun 4th, 2001, 01:25 PM
Originally posted by parksie
What's VB? Does anyone still use that? :confused:
:p
Ladies and gentlemen, meet parksie, the C++ expert :rolleyes:.
parksie, may I have a copy of your brain, just the C++ area? :D
parksie
Jun 4th, 2001, 01:32 PM
Sorry, after so long on the forums it's inextricably entwined with the "smut" department :rolleyes:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.