Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6644929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:13:29+00:00 2026-05-26T00:13:29+00:00

I have an array Cdo in the form (j,0)(i,0). There are two exceptions: the

  • 0

I have an array Cdo in the form (j,0)(i,0). There are two exceptions: the addresses (j,0) or (j,0)(0), usually empty, may contain a string with an error message [never both at the same time].

Want to pass through those errors without generating a subscript out of range while also documenting it to the cleaned up array, Breaks (in two dimensions, (j,i)).

For j = 0 to Symbol
    If TypeName(Cdo(j,0)) <> "String" Then
        If TypeName(Cdo(j,0)(0)) <> "String" Then
            For i = 0 to UBound(Cdo(j,0))
                Breaks(j,i) = Cdo(j,0)(i,0)
            Next i
        End if
        Breaks(j,1) = "#N/A"
    End if
    Breaks(j,1) = "#TrancheDef"
Next j

I tried IsEmpty and looking for a string (shown), but they both throw errors when looking somewhere not dimensioned. I can’t change the array as it comes in – how can I test whether a location, e.g. (403)(0)(0) “exists” so to speak?

Alternatively:
I could just check if Cdo(j,0)(i,0) exists – if not, then it should be one of the other two cases. Still revolves around the same fundamental question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:13:30+00:00Added an answer on May 26, 2026 at 12:13 am
    function ItExists(byval j as integer) as boolean
    
      On Error Resume Next
      if lenb((j,0)(0)) then
      'Nothing
      end if
      ItExists=(err.number=0)
      On Error Goto 0
    
    end function
    

    Something like the above should work. Play with it to make it do what you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Array of objects SomeObjects[] objects. This 'objects' may contain type of 'Employee',
An array is defined of assumed elements like I have array like String[] strArray
Have an array of chars like char members[255]. How can I empty it completely
I have an array in Perl: my @my_array = (one,two,three,two,three); How do I remove
How to find whether a string array contains some part of string? I have
I have a two dimensional array that I need to load data into. I
I have array of objects person (int age; String name;) . How can I
Let's say I have array like {12,23,,34,22,,,12} If there are 5 items as than
I have array of two textboxes in a table, on blur of one text
I have array like this: [0] => ['lang'] => 'DE', ['message'] => 'some text'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.