cursor position question

  • Thread starter Thread starter Guest
  • Start date Start date
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!
 
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.
 
Back
Top