Jump to content

Boş Satırları Silme


daft117
 Share

Recommended Posts

Satır1

Satır2




Satır3

örneğindeki gibi aradaki boş satırları (@CR,@LF,@CRLF) silmeye yarayan fonksiyon.

[code]Func __RemoveExtraLines($string)
Local $i = 0, $s = "", $split
$split = StringSplit($string, @CRLF, 0)
Do
$i = $i + 1
If $split[$i] = @CR Or $split[$i] = @CRLF Or $split[$i] = "" Or $split[$i] = @LF Then ContinueLoop
If $s == "" Then
$s = $split[$i]
Else
$s = $s & @CRLF & $split[$i]
EndIf
Until $i = UBound($split) - 1
Return ($s)
EndFunc [/code]
Link to comment
Share on other sites

notdefteriyle kafayı bozmuşsun.

elinde içinde gereksiz satırlar olan bi değişken var

$gereksiz olsun ismi

$yeni = __RemoveExtraLines($gereksiz)

$gereksiz'deki gereksiz satırları silip yeni değişkenine atayacak

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...