Sign in to follow this  
Followers 0
aria

copy contents of array into clipboard

4 posts in this topic

This should seem obvious, but it isnt working.

I have an array of 900 lines, and I used,

Dim $clipArray

$replaced = <<text file>>

_FileReadToArray ($replaced, $clipArray)

ClipPut ($clipArray)

I check the clipboard and it shows - "$clipArray"

What am I doing wrong?

Or is this not possible?

I did search the forums and the help file, but no answers :|

Any advice would be appreciated!

Thanks ;)

Share this post


Link to post
Share on other sites



I think you need to read the array and save it to a variable.

Local $max = 100
Local $array[$max]
For $i = 0 To $max - 1 ;fill the array
    $array[$i] = "Line" & $i
Next

Local $string
For $i = 0 To $max - 1 ;save the content to a string
    $string &= $array[$i] & @CRLF
Next

ClipPut($string)

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Thanks for the reply, yes I figured that one would have to manually fill the clipboard this way. But it would seem intuitive if there was at least a UDF which would have a single line function call to use ;)

If there is a function for things like "read array from file" & vice-versa, this would be on those lines.

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