0

I am using TScrollBar component, maybe I'm being stupid, but I can find a way to just get the value out, for example:

 myVal := TForm1.ScrollBar1.getval()

Could someone please tell me the command for this please?

Tim M
  • 479
  • 1
  • 8
  • 21
  • 2
    Have you seen [`Position`](http://docwiki.embarcadero.com/Libraries/XE5/en/Vcl.StdCtrls.TScrollBar.Position) property :) ? – TLama Mar 26 '14 at 14:20
  • 1
    Knew I was being stupid, I though that was about its position on the form! Ill look at that, thanks for your help :) – Tim M Mar 26 '14 at 14:22
  • 1
    You should make sure you know how to find the documentation. If you know about the docs then you'll be able to work all this stuff out for yourself: http://docwiki.embarcadero.com/Libraries/XE5/en/Vcl.StdCtrls.TScrollBar and http://stackoverflow.com/questions/21403628/ – David Heffernan Mar 26 '14 at 14:40
  • I was using the documentation, I was just looking for a something like "Value". – Tim M Mar 26 '14 at 14:43

1 Answers1

3

The "value" of a scroll bar is represented by the position of the scroll thumb along the bar. Thus, you should read the Position property.

Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467