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

  • Home
  • SEARCH
  • 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 8762749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:36:38+00:00 2026-06-13T15:36:38+00:00

I have an array that I have created to store error records and it

  • 0

I have an array that I have created to store error records and it has the following elements:
Serial No,File name, error type, error cell, error cell value

As of now I have declared my array like this and then I populate the values later on.

Dim errorArray() As String

But ideally, I want Serial Number to be a proper integer, but it is getting converted into string. I don’t know how to declare this correctly so that I can have Long datatype for the first element and string for the next 3 and variant for the last one.

  • 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-06-13T15:36:39+00:00Added an answer on June 13, 2026 at 3:36 pm

    You’ll want to create an array of type Variant. An array of type Variant can store any data type in any of its elements.

    Dim astrItems(0 To 9)    As String
    Dim varItems             As Variant
    
    varItems = astrItems
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Explanation I have a multidimensional array that is iterated over to created a categorized
I am currently trying to pass an array that I have created in Javascript
I have created an array in php that prints this Array ( [mark] =>
I have a Matlab function that creates a cell array with matrixes inside. It
I have a config.php file that creates an array, something like $config = array(
I have a model type that was generated from a mysql table that has
I have a snippet of code that creates an array clusterUniqueMarkers that stores all
I have a 3x3 array that I'm trying to create a pointer to and
I have a page that creates an associative array, then passes it as a
I have a function that creates zip files when passed an array of files

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.