|
-
Dec 2nd, 2004, 10:54 PM
#1
Thread Starter
Frenzied Member
VBCode? (Almost Solved)
Is it true what I see? What happened to our beloved visual basic code: tags?
Last edited by Tec-Nico; Dec 20th, 2004 at 03:36 PM.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 2nd, 2004, 10:57 PM
#2
Re: VBCode?
This is best placed in the feedback forum. This is broken temporarily. It will be back.
Brad!
-
Dec 2nd, 2004, 11:00 PM
#3
Software Eng.
Re: VBCode?
You'd probably get a better response in the Forum Feedback section; Brad will see it faster, there.
Regular 'code' tags still work though. Same with color-tags. I remember, before we had the 'vbcode' tags, Matt Gates, myself, and a few others made an application to automatically recognize VB keywords and insert < color=blue > tags around them.
-
Dec 2nd, 2004, 11:01 PM
#4
Re: VBCode?
The VB code coloring was a hack added to the forum. I didn't want to delay the upgrade to get that hack in place. It will be added back to the forum next week. We will also be changing the "#" button to say "Code" so it is easier to recognize as the standard Code button.
Brad!
-
Dec 2nd, 2004, 11:07 PM
#5
Thread Starter
Frenzied Member
Re: VBCode?
Thank you, Brad and Megatron...
I was just worried we would lose it forever.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 2nd, 2004, 11:12 PM
#6
Thread Starter
Frenzied Member
Re: VBCode?
Just one more thing...
Now that you will take your time to make it work again... Would you please fix the comment part of it?
I mean, I love how the tags work, but when you had a comment like:
'Brad's Code
It would appear like:
'Brad's Code
I know it sounds spoiled, but it could be a nice addition to the looks of the forums.
Thanks again.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 3rd, 2004, 01:20 PM
#7
Re: VBCode?
Brad, since, like Tec-Nico stated, that you will be doing new work on the vbcode tags, could we get support for .NET code so its keywords would be colored too?
Btw: This will not be considered an early x-mas gift to us either
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 3rd, 2004, 02:49 PM
#8
I wonder how many charact
Re: VBCode?
 Originally Posted by brad jones
The VB code coloring was a hack added to the forum. I didn't want to delay the upgrade to get that hack in place. It will be added back to the forum next week. We will also be changing the "#" button to say "Code" so it is easier to recognize as the standard Code button.
Brad!
That must be some interesting hack...
-
Dec 3rd, 2004, 09:14 PM
#9
Re: VBCode?
 Originally Posted by nemaroller
That must be some interesting hack...
It is just a bit of PHP code. Being that I'm more of a Microsoft and C++ languages programmer, "Interesting" is a good word to use. I'll be trying to get the basic code hooked back in Monday/Tuesday. Once that is done, it should be easy to get the new keywords added. The comments issue might be a little more work. We will get there though 
(This is one of the top items to get done.)
Brad!
-
Dec 3rd, 2004, 10:21 PM
#10
Thread Starter
Frenzied Member
Re: VBCode?
Once again, thanks Brad.
There is a VB Project that does that as well, I believe. I can upload it if you want... (I know it is not PHP but you could get an idea of the algorithms used there if you want or need to, but I doubt you need to)
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 3rd, 2004, 10:48 PM
#11
Re: VBCode?
Code:
On Error Me.Fault = False
Code tags work. Is that what you mean? I'm still using the update that has options for html that allow code, and quote, etc.
-
Dec 4th, 2004, 04:21 PM
#12
Thread Starter
Frenzied Member
Re: VBCode?
Code:
On Error Me.Fault = False
'Brad's Code
If Something And Something Or Something Then
For i = 0 To 10
Next
Else
Select Case Hey
Case 0:
Do
Hmmm...
Loop Until 1
Case 1:
Do
Hmmm...
Loop While 2
End Select
End If
Why don't I get it then, David? Should I add colors in the code's tag?
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 4th, 2004, 11:10 PM
#13
Ex-Super Mod'rater
Re: VBCode?
 Originally Posted by dglienna
Code:
On Error Me.Fault = False
Code tags work. Is that what you mean? I'm still using the update that has options for html that allow code, and quote, etc.
Haha yea if you quote him you'll see he's added the blue himself . And I was thinking they'd added simple keywords .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 4th, 2004, 11:51 PM
#14
Thread Starter
Frenzied Member
Re: VBCode?
Yeah, I supposed so, Electroman. But I also wanted to show the other people it didn't work...
Me should be blue as well.. 
But it is not just an issue of having my signature colored or not. If you browse through the forums you will find that there are thousands of threads with the same tags which were relying on this hack to work.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 4th, 2004, 11:58 PM
#15
Ex-Super Mod'rater
Re: VBCode?
As Brads said he's working on it and it should be back to normal Monday or only a day or two after that but is his main priority .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 5th, 2004, 03:38 AM
#16
Re: VBCode?
 Originally Posted by Electroman
Haha yea if you quote him you'll see he's added the blue himself  . And I was thinking they'd added simple keywords  .
I noticed it the other night, when I used the right-click option of the download. It must do it automatically. Actually, I don't like the color tags, and have to copy the messsage, and overwrite the old one to edit the posts.
I forget where I got it, but it was here, this summer. I think it was in a Firefox thread. I've used it in other webpages, as well.
Not sure what is doing it, but, I guarantee that it is done automatically, with no intervention on my part.
-
Dec 5th, 2004, 08:43 AM
#17
Ex-Super Mod'rater
Re: VBCode?
 Originally Posted by dglienna
I noticed it the other night, when I used the right-click option of the download. It must do it automatically. Actually, I don't like the color tags, and have to copy the messsage, and overwrite the old one to edit the posts.
I forget where I got it, but it was here, this summer. I think it was in a Firefox thread. I've used it in other webpages, as well.
Not sure what is doing it, but, I guarantee that it is done automatically, with no intervention on my part.
That would be Canders VBF FireFox plugin .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 5th, 2004, 12:35 PM
#18
Thread Starter
Frenzied Member
Re: VBCode?
Cander has a plugin for FireFox to do that? Where can I download it?
(FireFox rocks)
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 5th, 2004, 05:11 PM
#19
Re: VBCode?
 Originally Posted by Tec-Nico
Cander has a plugin for FireFox to do that? Where can I download it?
(FireFox rocks)
here you go:
http://vbforums.com/showthread.php?t...4&highlight=FF
maybe that one could also have it's own tag. Like [ccode] [/ccode]
ØØ
-
Dec 5th, 2004, 06:06 PM
#20
Thread Starter
Frenzied Member
Re: VBCode?
Thank you, NoteMe. But... Does it work with version 1.0?
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 17th, 2004, 11:59 PM
#21
Thread Starter
Frenzied Member
Re: VBCode?
How is it going? I guess it is harder than expected, right?
Keep up the good work, Brad. 
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 20th, 2004, 03:20 PM
#22
Thread Starter
Frenzied Member
Re: VBCode?
Yay! The VBCode Tag is back!!
Thank you, Brad. 
Now just a little test:
VB Code:
If Something = True Then 'My Code: Debug.Print "Hello World" Else 'Somebody else's code: Debug.Print "Hey, Earth" End If
[Edit:]
It seems I did something wrong because it appeared broken... I am testing it again 
Last edited by Tec-Nico; Dec 22nd, 2004 at 01:14 PM.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 20th, 2004, 03:29 PM
#23
Thread Starter
Frenzied Member
Re: VBCode?
Apparently it is eating the enters and adding a \ before the comments...
Let me see what happens without comments:
VB Code:
If Something = True Then Debug.Print "Something" Else Debug.Print "Something Else" End If
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 20th, 2004, 05:39 PM
#24
Re: VBCode? (Almost Solved)
There is definately a problem. I put VBCode tags around this in another thread and it wipes out the thread!
Code:
Private Sub Form_Load()
' Create the instance of the database class
Set gDB = New CDatabase
' Open the database
gDB.dbName = App.Path & "\northwind.MDB"
' Create an object variable for the ColumnHeader object.
Dim clmX As ColumnHeader
' Add ColumnHeaders.
Set clmX = lvFind.ColumnHeaders.Add(, , "Product", (lvFind.Width - 1066) / 2)
Set clmX = lvFind.ColumnHeaders.Add(, , "Supplier ID", (lvFind.Width - 1066) / 2)
Set clmX = lvFind.ColumnHeaders.Add(, , "Category ID", 976)
lvFind.BorderStyle = ccFixedSingle ' Set BorderStyle property.
lvFind.View = lvwReport ' Set View property to Report.
' Label OptionButton controls with SortOrder options.
OptSort(0).Caption = "Sort Ascending"
OptSort(1).Caption = "Sort Descending"
lvFind.SortOrder = lvwAscending ' Sort ascending.
OptSort(0).Value = True
End Sub
Private Sub lvFind_ColumnClick(ByVal ColumnHeader As ColumnHeader)
' When a ColumnHeader object is clicked, the ListView control is
' sorted by the subitems of that column.
' Set the SortKey to the Index of the ColumnHeader - 1
lvFind.SortKey = ColumnHeader.Index - 1
' Set Sorted to True to sort the list.
lvFind.Sorted = True
End Sub
Private Sub Form_Activate()
txtWord.SetFocus
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frmFind = Nothing
End Sub
Private Sub lvFind_DblClick()
cmdFind(findCloseButton) = True
End Sub
Private Sub cmdFind_Click(Index As Integer)
Dim sSQLProducts As String
Dim sErr As String
Dim itmX As ListItem ' Create a variable to add ListItem objects.
Select Case Index
Case findFindItButton
On Error Resume Next
lvFind.ListItems.Clear
sSQLProducts = "Select * from Products where ProductName like '*" & txtWord & "*' "
Set mrsProducts = gDB.DB.OpenRecordset(sSQLProducts, dbOpenDynaset)
If Err.Number <> 0 Then
sErr = Err.Description
On Error GoTo 0
Err.Raise dbOpenRSError, "cmdFind_Click", sErr
End If
While Not mrsProducts.EOF
Set itmX = lvFind.ListItems.Add(, , CStr(mrsProducts!ProductName))
itmX.SubItems(1) = CStr(mrsProducts!SupplierID)
itmX.SubItems(2) = mrsProducts!CategoryID
mrsProducts.MoveNext
Wend
mrsProducts.Close
Case findCloseButton
Unload Me
Case Else
ColorListviewRow lvFind, 5, vbRed ' use 16711681 instead of vbBlue
End Select
End Sub
-
Dec 20th, 2004, 06:03 PM
#25
Re: VBCode? (Almost Solved)
The VBCODE tag is still a work in progress. Heidi is on the job, so it is much closer than it has been . I've pointed MartinLiss' bumm code to Heidi, so hopefully that will help to isoloate the problem (I've also managed to get the blank pages....)
We are getting close! Once we get it working, I'll be able to maintain the key term list.
Brad!
-
Dec 20th, 2004, 06:06 PM
#26
Ex-Super Mod'rater
Re: VBCode? (Almost Solved)
 Originally Posted by brad jones
The VBCODE tag is still a work in progress. Heidi is on the job, so it is much closer than it has been  . I've pointed MartinLiss' bumm code to Heidi, so hopefully that will help to isoloate the problem (I've also managed to get the blank pages....)
We are getting close! Once we get it working, I'll be able to maintain the key term list.
Brad!
If you use the ' coments at all then you get that problem. Using the rem is fine though .
For example this code would do it if it was VBCode tags:
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 23rd, 2004, 12:16 PM
#27
Thread Starter
Frenzied Member
Re: VBCode? (Almost Solved)
One doubt... It seems the code is working everywhere in the forum but my examples posted here won't work... Can anyone tell me why?
It is just something like: (Hope it works)
VB Code:
'Somebody else's Code:
If something Then
Debug.Print "Hello"
Else
Debug.Print "Hi"
End If
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 23rd, 2004, 12:28 PM
#28
Thread Starter
Frenzied Member
Re: VBCode? (Almost Solved)
Why is it eating the lines and keeping everything in blue?
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 23rd, 2004, 12:33 PM
#29
Re: VBCode? (Almost Solved)
I cut and pasted your code in the test forum and it worked file. I'm cutting and pasting here to see what happens:
One doubt... It seems the code is working everywhere in the forum but my examples posted here won't work... Can anyone tell me why?
It is just something like: (Hope it works)
VB Code:
'Somebody else's Code:
If something Then
Debug.Print "Hello"
Else
Debug.Print "Hi"
End If
-
Dec 23rd, 2004, 12:35 PM
#30
Re: VBCode? (Almost Solved)
I just opened your post (edit) and simply saved. Something goofy must have been at the end of the code lines you entered. Saving it seems to have reset whatever was at the end of your lines.
Brad!
-
Dec 23rd, 2004, 12:36 PM
#31
Re: VBCode? (Almost Solved)
 Originally Posted by Tec-Nico
Why is it eating the lines and keeping everything in blue? 
Good question on the line breaks.
Because he set the color of the post to blue is the answer to the other. (Just like I set it to Orange for this post)
Brad!
-
Dec 23rd, 2004, 12:38 PM
#32
Ex-Super Mod'rater
Re: VBCode? (Almost Solved)
Can I just add I viewed this thread straight after Tec-Nico posted that code and it looked fine, apart from it was all on one line. Now the font is messed up. Or did you edit something Tec-Nico?
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 23rd, 2004, 12:39 PM
#33
Ex-Super Mod'rater
Re: VBCode? (Almost Solved)
And now its all fine, I guess you must have changed something.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 23rd, 2004, 01:27 PM
#34
Thread Starter
Frenzied Member
Re: VBCode? (Almost Solved)
I didn't edit anything, Electroman. I guess I am the guy that has the luck to get into strange things.
I will try once again:
VB Code:
[color=#00007f] If Something = True [color=#00007f]Then [/color] [color=#00007f]Debug[/color].[color=#00007f]Print[/color] "Hello"[color=#00007f] Else [/color] [color=#00007f]Debug[/color].[color=#00007f]Print[/color] "Hi" [color=#00007f]End[/color] If
P.S. I am using the WYSIWYG Editor.
[/color]
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 23rd, 2004, 01:32 PM
#35
Thread Starter
Frenzied Member
Re: VBCode? (Almost Solved)
Hmmm... Strange. Please let me try without using any format (but using the WYSIWYG editor)
VB Code:
'Some Code: If Something = True Then Debug.Print "Hello" Else Debug.Print "Hi" End If
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 23rd, 2004, 01:34 PM
#36
Thread Starter
Frenzied Member
Re: VBCode? (Almost Solved)
It still eats the breaks...
I don't understand why, unless it happens to anyone (And I don't think so) who is using the WYSIWYG editor.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
-
Dec 23rd, 2004, 01:38 PM
#37
Re: VBCode? (Almost Solved)
I tried the WYSIWYG editor but couldn't figure out how to add a text replacement value for a URL.
-
Dec 23rd, 2004, 01:47 PM
#38
Ex-Super Mod'rater
VB Code:
'Some Code:
If Something = True Then
Debug.Print "Hello"
Else
Debug.Print "Hi"
End If
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 23rd, 2004, 01:54 PM
#39
Ex-Super Mod'rater
Re: VBCode? (Almost Solved)
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 23rd, 2004, 05:13 PM
#40
Thread Starter
Frenzied Member
Re: VBCode? (Almost Solved)
See what I mean?
Then it is the WYSIWYG editor, right?
Does that mean I have to change the editor? I was getting used to it... 
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|