Beginning VB 6For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
In my notepad project I inserted the possibility to have an indented paragraph. Unfortunately following code indents all the text:
Private Sub ind_Click()
With ActiveForm.rtfText
.SelStart = 1 .SelLength = Len(.Text) âTHIS SELECT TO THE END OF TEXT.
.SelIndent = 1440
.SelRightIndent = 1440
End With
End Sub
The wrong line is the one commented (this select ...)I should substitute with a line which apply the modification only at one paragraph end is encountered (I mean, until a "."(dot = end of phrase) is met)
How could I do ?
Thanks in advance.
Function InStr([Start], [String1], [String2], [Compare As VbCompareMethod = vbBinaryCompare])
Member of VBA.Strings
Returns the position of the first occurrence of one string within another