🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.vbasic
4 messages
4 total messages Started by Manuel Hoeger Sun, 23 Nov 1997 10:39
How to find out the cursor position
#187
Author: Manuel Hoeger
Date: Sun, 23 Nov 1997 10:39
5 lines
1060 bytes
Can you tell me how to find out the cursor position in a variable or a
Text box on Runtime?
I work with Visual Basic 4.0
Thank you!!
Manuel
Re: How to find out the cursor position
#188
Author: Michaela Meier
Date: Mon, 24 Nov 1997 21:16
10 lines
942 bytes
Manuel Hoeger wrote:
> 
> Can you tell me how to find out the cursor position in a variable or a
> Text box on Runtime?

Hi,

Check out  textBox.selstart 

Michaela
Re: How to find out the cursor position
#189
Author: Andrew Kidd
Date: Tue, 25 Nov 1997 03:25
23 lines
1558 bytes
manuel...
	not sure if this is exactly what you are looking for,  but you might
want to take a look at the selstart command....

Like Text1.SelStart would point to the spot in the text1 text box where
the cursor is...


Hope this helps....

-- 
Andrew Kidd     kidd@inetdirect.net
*****************  Everything you need in a Freeware 
**   SiteAid   **  HTML Editor - Find out more at:
*****************  http://netdirect.net/~kidd/SiteAid

Manuel Hoeger wrote:
> 
> Can you tell me how to find out the cursor position in a variable or a
> Text box on Runtime?
> I work with Visual Basic 4.0
> Thank you!!
> Manuel
Re: How to find out the cursor position
#190
Author: Jeffrey Renton
Date: Tue, 25 Nov 1997 12:47
56 lines
3019 bytes
Ě	SelLength Ś returns or sets the number of characters selected.
Ě	SelStart Ś returns or sets the starting point of text selected; indicates
the position of the insertion point if no text is selected.
Ě	SelText Ś returns or sets the string containing the currently selected
text; consists of a zero-length string ("") if no characters are selected.

These properties aren't available at design time.

Syntax

object.SelLength [= number]
object.SelStart [= index]
object.SelText [= value]

The SelLength, SelStart, and SelText property syntaxes have these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To
list.
number	A numeric expression specifying the number of characters selected.
For SelLength and SelStart, the valid range of settings is 0 to text length
Ś the total number of characters in the edit area of a ComboBox or TextBox
control.
index	A numeric expression specifying the starting point of the selected
text, as described in Settings.
value	A string expression containing the selected text.
Remarks

Use these properties for tasks such as setting the insertion point,
establishing an insertion range, selecting substrings in a control, or
clearing text. Used in conjunction with the Clipboard object, these
properties are useful for copy, cut, and paste operations.
When working with these properties:

Ě	Setting SelLength less than 0 causes a run-time error.
Ě	Setting SelStart greater than the text length sets the property to the
existing text length; changing SelStart changes the selection to an
insertion point and sets SelLength to 0.
Ě	Setting SelText to a new value sets SelLength to 0 and replaces the
selected text with the new string.
-- 
Hope this helps...

Jeffrey Renton
jrenton AT ees DOT enron DOT com


Manuel Hoeger <Manuel.Hoeger@t-online.de> wrote in article
<65914i$k1s$1@news01.btx.dtag.de>...
> Can you tell me how to find out the cursor position in a variable or a
> Text box on Runtime?
> I work with Visual Basic 4.0
> Thank you!!
> Manuel
> 
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads