Jump to content

_ArrayToClip()


Recommended Posts

  • Moderators

Hi,

_ArrayToClip() adds at each element a @CR. Why not add an optional parameter where you can define what separator to use? I would prefer a @CRLF as default.

I guess you could always change the UDF yourself in the include file:
Func _ArrayToClip(Const ByRef $avArray, $i_Base = 0, $vCR = @CR)
    Local $iCntr, $iRetVal = 0, $sCr = "", $sText = ""
    
    If (IsArray($avArray)) Then
        For $iCntr = $i_Base To (UBound($avArray) - 1)
            $iRetVal = 1
            If $iCntr > $i_Base Then
                $sCr = $vCR
            EndIf
            $sText = $sText & $sCr & $avArray[$iCntr]
        Next
    EndIf
    ClipPut($sText)
    Return $iRetVal
EndFunc   ;==>_ArrayToClip
Until it happens or doesn't happen.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

I guess you could always change the UDF yourself in the include file:[autoit]Func _ArrayToClip(Const ByRef

Of course I could, but I don't want to lose this change with the next AutoIt-update :) and I think it's a change that might be useful for others as well.
Link to comment
Share on other sites

  • Moderators

If it's a feature request, might post it in the idea lab (or the mods may move it). I like having as many options available myself that I can change if I wish... :)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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