Open shaunroselt opened 1 year ago
VScrollBar returns nil for native presentation. Check it out: https://docwiki.embarcadero.com/Libraries/Alexandria/en/FMX.ScrollBox.TCustomPresentedScrollBox.VScrollBar
AttributeError: 'NoneType' object has no attribute 'Max'
When it says 'NoneType', it means you are accessing a nil reference from Delphi.
Ah, I see. That makes sense.
Do you maybe know how I can scroll to the bottom of the memo if there aren't any styles that are used?
Normally in
Delphi
I would doMemo1.VScrollBar.Value := self.Memo1.VScrollBar.Max;
to scroll to the bottom of aMemo
. I tried doing this inPython
, but it doesn't work.Here's a code example in Python:
The error is:
AttributeError: 'NoneType' object has no attribute 'Max'
Or am I maybe using it wrong in Python?