Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

Editing problem: How to manage CrLf marks for Cut/Copy

$
0
0
I have a fairly simple Editor i probably lifted from here some time ago. It works fine except when doing a cut to move line(s). It pulls off the CrLf and the succeeding line then gets pulled upward.
What is the proper method to manage the CrLf?
From my cut proc: VB6 code

Code:

Private Sub EditCutProc()
    ' Copy the selected text onto the Clipboard.
    Clipboard.Clear  'v1.6.030 Note: must must clear first
    Clipboard.SetText txtNote.SelText
    ' Delete the selected text.
    txtNote.SelText = ""
End Sub


Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>