[RESOLVED] [2008] Checking byte arrays
I was just wondering what the best way to check if a byte array has anything in it. If it hasn't been used yet then I get the message that it's not set to a instance so I was thinking of using 'try' but that seems really bad. Is there a better way?
Thanks
Re: [2008] Checking byte arrays
How are you creating the array in the first place?
(And error trapping is never bad. :) )
Re: [2008] Checking byte arrays
Sorry I was just explaining myself and figured it out. Sorry for wasting your time. Thanks though!
Re: [RESOLVED] [2008] Checking byte arrays
Don't go away without posting your solution.
It could help someone else with the same or similiar situation.
Thanks. :)
Re: [RESOLVED] [2008] Checking byte arrays
Ok my code looked something this this (This was of course simplified):
Code:
dim a() as byte
doFuctionPassA ( byref a ) ' pseudo code here showing the varible getting passed
'since I'm not sure it was assigned anything yet I needed to check.
'the way I figured out was this
if a is nothing then
'is nothing true
else
'is nothing false
end if