Contents tagged with basic
-
String.Format("My name is {0}", "Luciano Evaristo Guerche") (VB6)
A feature I loved in .NET (C# and VB.NET) is String.Format method. So I thought how I could have the same feature on VB6 and I came up with the following code.
-
Public Function IsValidCPF(ByVal strCPF As String) As Boolean
Option
Explicit -
Renaming Microsoft Sourcesafe items through OLE automation
Today I had to rename a thousand items on Microsoft Sourcesafe just to conform to Enterprise Manager's item naming conventions. I would be out of luck, but fortunately Microsoft Sourcesafe allows OLE automation, so I created a new Visual Basic 6 project, added a new command button, renamed it to cmdRenameSourcesafeItems and add the following code to the Click event
-
Microsoft Outlook OLE automation to bulk adjust email display name
I've just written code bellow to adjust email display name from my contacts on Personal Folders > Contacts > Plaxo
-
Body art with a VB flavour
-
Bin, Oct and Hex
Visual Basic 6 has the Hex function, but no Bin or Oct, so I wrote the silly functions bellow, just to have a bit of fun.
Option Explicit Public Function Bin(ByVal lngNumber As Long) As String Do While lngNumber > 0 Bin = (lngNumber Mod 2) & Bin lngNumber = lngNumber \ 2 Loop If (Len(Bin) Mod 8) <> 0 Then Bin = String$(8 - (Len(Bin) Mod 8), "0") & Bin End If End Function Public Function Oct(ByVal lngNumber As Long) As String Do While lngNumber > 0 Oct = (lngNumber Mod 8) & Oct lngNumber = lngNumber \ 8 Loop If (Len(Oct) Mod 4) <> 0 Then Oct = String$(4 - (Len(Oct) Mod 4), "0") & Oct End If End Function
-
A sneak preview of Visual Basic 2005 (article) is up on MSDN...
This new article from Ken Getz provides an overview of many of the new features in Visual Basic 2005, including "My", "Edit and Continue", "AutoCorrect", "Just My Code" and more...
[Via Duncan Mackenzie, Microsoft Developer Network Visual Basic Content Strategist]
Check it out here -
Best VB bloggers
“Community Seal of Approval” Blogs (blogs that got at least one recommendation)
-
RE: Who are the best VB bloggers?
-
Visual Basic at the Movies now available for download...
Interested in VB at the Movies, but wanted to pull the video files local? Now you can... Click here to go to the download page.
[Via Duncan Mackenzie...]