cursor position question

G

Guest

We have a question about the position of the cursor when in a file.

Example note pad. If I’m at the far left is this position 1, or 0?

Does some system (IBM, Oracle, etc) do this different?

I would like many responses as I can to see what the norm is in the position
world..

Thanks!
 
B

Brendan Reynolds

In Notepad, select Status Bar from the View menu, and all will be revealed.

Most of the apps on my PC seem to treat the far left position as position
one as far as the user is concerned. However, when using the SelStart
property of an Access text box, the far left position is zero. I haven't
tested nearly enough different apps to say if there is any kind of 'norm',
but within the limited range of apps that I have looked at, for whatever
that may be worth, the norm appears to be one if we're talking about the UI,
but zero if we're talking programmatically.

This makes sense to me, as programmers are used to collections being
zero-based, while end-users are more used to starting at one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top