Jump to content

Recommended Posts

Posted

Hi,

I am converting -NowDate() format from 'M/DD/YYYY' to 'MM/DD/YYYY' and it looks weird that out of 10 machines 2 machines give the below error.

Is there any other way I can try this out to get the date format in MM/DD/YYYY?

Local $Today = _NowDate() ; Get Today's Date
    Local $Date = StringSplit($Today, "/")
    Local $GetAppDate = StringRight($Today, 2) < StringLeft(@YEAR, 2) ? StringFormat("%02d/%02d/%d", $Date[1], $Date[2], $Date[3]) : StringFormat("%02d/%02d/%d", $Date[1], $Date[2], $Date[3]) ; Convert _NowDate() M/DD/YYYY to MM/DD/YYYY

Error: Array variable has incorrect number of subscripts or subscript dimension range

Posted

Maybe the failing machines use another locale, hence some separator but not a slash.

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)

Posted

Guessing about check the local time settings.

When you got 4 results in one variable. If you're trying to access to a non existing result in that variable you gonna have this error.

 

You can use

UBound

to count the number of result in a variable.

 

 

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

Hi,

@Melba23 has a UDF that might help you (just noticed it in some of Melba's postings, never tried it)

 

 

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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...