Sign in to follow this  
Followers 0
legend

_ArrayDisplay to msgbox

4 posts in this topic

Does someone know how I would get this: 

_ArrayDisplay($FileList, UBound($FileList)&' - '&$timer&' - RegExp (?????)')

to show the result as a msgbox

full script: 

#include <Array.au3>
#include <FileOperations.au3>

$timer = TimerInit()
$FileList=_FO_FileSearch(@UserProfileDir, '*', True, 125, 1, 0)
$FileList=StringRegExp($FileList, '(?mi)^(.*\.(?:xdata))(?:\r|\z)', 3)
$timer = Round(TimerDiff($timer) / 1000, 2) & ' sec'
_ArrayDisplay($FileList, UBound($FileList)&' - '&$timer&' - RegExp (?????)')

Share this post


Link to post
Share on other sites

#include <Array.au3>
#include <FileOperations.au3>

$timer = TimerInit()
$FileList = _FO_FileSearch(@UserProfileDir, '*', True, 125, 1, 0)
$FileList = StringRegExp($FileList, '(?mi)^(.*\.(?:xdata))(?:\r|\z)', 3)
$timer = Round(TimerDiff($timer) / 1000, 2) & ' sec'
$Msg = ''

For $i = 0 To UBound($FileList) - 1
    $Msg &= $FileList[$i]
Next
MsgBox(0, 0, $Msg)
;_ArrayDisplay($FileList, UBound($FileList) & ' - ' & $timer & ' - RegExp (?????)')


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

@legend

#include <Array.au3>
#include <FileOperations.au3>

$timer = TimerInit()
$FileList = _FO_FileSearch(@UserProfileDir, '*', True, 125, 1, 0)
$FileList = StringRegExp($FileList, '(?mi)^(.*\.(?:xdata))(?:\r|\z)', 3)
If @error Then MsgBox(0, 'Error', 'Not xdata') ; !!!!!
$timer = Round(TimerDiff($timer) / 1000, 2) & ' sec'
_ArrayDisplay($FileList, UBound($FileList) & ' - ' & $timer & ' - RegExp (?????)')

Share this post


Link to post
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
Sign in to follow this  
Followers 0