If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > variables initialized

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-02, 05:23
daboira daboira is offline
Registered User
 
Join Date: Dec 2001
Location: Barcelona
Posts: 32
Question 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.
Reply With Quote
  #2 (permalink)  
Old 10-30-02, 17:16
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Which language are you using, visual basic ?
Reply With Quote
  #3 (permalink)  
Old 10-31-02, 03:23
daboira daboira is offline
Registered User
 
Join Date: Dec 2001
Location: Barcelona
Posts: 32
Yes, visual basic.
Reply With Quote
  #4 (permalink)  
Old 11-01-02, 14:15
rnealejr rnealejr is offline
Registered User
 
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.
Reply With Quote
  #5 (permalink)  
Old 11-02-02, 12:32
fhunth fhunth is offline
Registered User
 
Join Date: Oct 2002
Location: Argentina
Posts: 72
i have not installed vb to test it
but take a look at ISNOTHING()

Suerte
Reply With Quote
  #6 (permalink)  
Old 11-02-02, 14:19
rnealejr rnealejr is offline
Registered User
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On