Jump to content

Create Arrayname with a variable


cheun
 Share

Recommended Posts

Hello,

I am stuck on a point in a script and I your help would be very appreciated.
The goal is to create multiple Array from a source Array.

The question is : How to create Arrays which name would be composed of a string and a variable which is incremented in a loop?

Thank you !!!


Link to comment
Share on other sites

Hello,

The first Array is generated from an excel file which contains :

image.png.2854e11069417a6b1a75de851700b46a.png

So the goal is to create for as many Array as 'Type 5'. Here we have 4 rows which contains the data "5". The name of the created arrays could be for exemple : array_type5_number1, ... array_type5_number4.

Thank you everyone!

Link to comment
Share on other sites

Is there a reason to have multiple arrays instead of a two dimensional array with just the type 5 rows? What's the overall goal of your script? :)

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...