vbNullString in

Posted on 2005-05-11
Last Modified: 2012-06-27
Does anybody know what the equivalant command to vbNullSting in Visual Basic .net?  Shoulc chr(0) work in its place?
Question by:dlorenz
    LVL 7

    Assisted Solution

    For comparison, I believe you use "Nothing" in place of "vbNullString".

    As in :

    If tmpString = Nothing Then ....
    LVL 19

    Accepted Solution

    vbNullString in .Net is vbNullString, as in:

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim myValue As String
            myValue = "dlorenz"
            myValue = vbNullString
        End Sub

    LVL 3

    Author Comment

    My mistake.  vbNullString does work in .net.  However, it looks like nothing will work as well.  

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now