Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2001
    Location
    Barcelona
    Posts
    32

    Question Unanswered: variables initialized

    I have a structure like this
    Type PropsFitx
    Subst As Boolean
    nom As String
    End Type
    and then declare avariable for the structure:
    Public LocalFitx() As PropsFitx
    How can I know if I have initialized the variable?
    The IsEmpty function returns me an error.
    Thanks.

  2. #2
    Join Date
    Feb 2002
    Posts
    2,232
    Which language are you using, visual basic ?

  3. #3
    Join Date
    Dec 2001
    Location
    Barcelona
    Posts
    32
    Yes, visual basic.

  4. #4
    Join Date
    Feb 2002
    Posts
    2,232
    IsEmpty is used for variants which won't help you. What exactly are you trying to determine ? When you strongly type a variable, vb will automatically put a default - in your case, false for the boolean, and "" for the string.

  5. #5
    Join Date
    Oct 2002
    Location
    Argentina
    Posts
    72
    i have not installed vb to test it
    but take a look at ISNOTHING()

    Suerte

  6. #6
    Join Date
    Feb 2002
    Posts
    2,232
    In vb6 there is not an isnothing function. There is an isnothing function within vb.net which behaves like the "is nothing" test in vb6. However, both of these test whether an object has been instantiated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •