Browse by Tags

Related Posts

  • 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 StringDotFormat( ByVal strFormat As String , ByVal ParamArray aryPlaceHolders()) As String Dim intPlaceHolderIndex As Integer...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 05-17-2006, 12:00 AM
    Filed under: microsoft, visual, basic, visual basic
  • Public Function IsValidCPF(ByVal strCPF As String) As Boolean

    Option Explicit Public Function IsValidCPF( ByVal strCPF As String ) As Boolean Dim intDigito As Integer Dim intIndex As Integer Dim intModulo As Integer Dim intSoma1 As Integer Dim intSoma2 As Integer Dim intDigitoVerificador1 As Integer Dim intDigitoVerificador2 As Integer intSoma1 = 0 intSoma2 = 0...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 05-09-2006, 12:00 AM
    Filed under: microsoft, visual, basic, visual basic
  • 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...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 12-01-2005, 12:00 AM
    Filed under: microsoft, visual, basic, visual basic
  • 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 Option Explicit Private Sub cmdExecute_Click() Dim blnDirty As Boolean Dim objOutlookApplication As Outlook.Application Dim objOutlookMAPIFolder As Outlook.MAPIFolder Dim objOutlookContactItem...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 07-15-2005, 12:00 AM
    Filed under: .net, framework, microsoft, visual, basic, visual basic, visual basic .net
  • 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...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 10-01-2004, 12:00 AM
    Filed under: .net, framework, microsoft, visual, basic, visual basic, visual basic .net
  • 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... Check it out here [Via Duncan Mackenzie, Microsoft Developer Network Visual Basic...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 06-23-2004, 12:00 AM
    Filed under: .net, framework, microsoft, visual, basic, visual basic, visual basic .net
  • Best VB bloggers

    A few weeks ago, I asked for recommendations for non-Microsoft VB bloggers. Without further ado, here are the lists... “Community Seal of Approval” Blogs (blogs that got at least one recommendation) Anand M Greg Robinson Richard Tallent Bob Carver, Scott Swigart and Sean Campbell Cory Smith...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 06-23-2004, 12:00 AM
    Filed under: .net, framework, microsoft, visual, basic, visual basic, visual basic .net
  • RE: Who are the best VB bloggers?

    A while ago Eric asked “ Who are the best C# bloggers external to MS? ” which sparked a similar question in my own mind: Who are the best VB bloggers external to MS? I have my own opinions, but I'm interested to see who people find helpful and/or interesting. Just add your comments and...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 06-02-2004, 12:00 AM
    Filed under: .net, framework, microsoft, visual, basic, visual basic, visual basic .net
  • For those who still uses VB 6 and have to deal with unindented code...

    I have created this Visual Basic Addin some time ago to solve a recurring problem I used to have: Deal with big projects with unindented code anywhere. I am not sure it covers 100% VB 6 syntax because I did not find any "VB 6 reserved keywords" list on Internet that time. So try it and extend...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 03-07-2004, 12:00 AM
    Filed under: .net, framework, microsoft, visual, basic, visual basic, visual basic .net
  • email received from Duncan Mackenzie

    Tomorrow morning, when I opened Outlook Express and checked my email inbox at hotmail.com, I could not believe I have received an email from Duncan Mackenzie , MSDN Content Strategist for Visual Basic, commenting on the email I have sent to Robert Green , a Visual Basic .Net team member. Amazing to know...
    Posted to Luciano Evaristo Guerche (Weblog) by Luciano Evaristo Guerche on 02-13-2004, 12:00 AM
    Filed under: microsoft, visual, basic, visual basic, network, developer, strategist, content
Page 1 of 2 (13 items) 1 2 Next >