HighGuy Posted May 31, 2006 Share Posted May 31, 2006 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 31, 2006 Moderators Share Posted May 31, 2006 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 ;==>_ArrayToClipUntil 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 More sharing options...
HighGuy Posted May 31, 2006 Author Share Posted May 31, 2006 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 More sharing options...
Moderators SmOke_N Posted May 31, 2006 Moderators Share Posted May 31, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now