Jump to content

Recommended Posts

Posted

I just found out that I can create empty arrays for use later.

This will help me a lot with a few things I want to do.

However, are there any reasons I wouldn't want to do this? Because from my experience, other languages can't do this.

#include <Array.au3>
Local $empty[0]

_ArrayAdd($empty, "100, 100, 100, 100, 100, 1820, 1820, 1820, 1820, 1820", 0, ", ")
_ArrayDisplay($empty)

 

Thank you in advance.

Posted (edited)

@IAMK

Where is your problem ?

What is the question ? 

 

Translate this back into your language and you'll see that it does not ask anything.

53 minutes ago, IAMK said:

However, are there any reasons I wouldn't want to do this?

If you mean that is there a cons-indications to do that. 

The answer is same as if you ask : 

If I make an empty $Variable to use it later is it bad ? 

Answer : No.

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Posted (edited)

You can fill "$empty" with header at line 0 but you need to write $empty[1]

next add value you want and redim o delete header

 

Edited by Stacker
Posted

Empty arrays are a very useful feature and there is no issue with them.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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
  • Recently Browsing   0 members

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