[Harbour] [Viktor] HBEditor: Scope of some vars
Szakáts Viktor
harbour.01 at syenar.hu
Sun Sep 9 08:04:13 EDT 2007
Hi Teo,
Thanks. I've added :RowPos(), :ColPos(), :IsWordWrap(),
:WordWrapCol() to HBEditor() and :End() to TBrwText.
aText is very much internal and can be changed in the
future, so developers should use :GetLine() or :GetText()
to access the text (or subclass HBEditor and make it
available via a method).
I've noticed some namespace violations in the debugger
code, so I'll fix those too (with some additions to
hbcompat.ch).
Brgds,
Viktor
On 2007.09.09., at 12:24, Teo Fonrouge wrote:
> Hello,
>
> I think that we need to change the PROTECTED scope from some vars
> in the
> HBEditor class to EXPORTED.
>
> For example, the HBEditor:nRow is now PROTECTED, but it is causing
> a 'Scope
> violation (protected)' error in the TDebugger:ToCursor() method:
>
> 2705: LOCAL cName := strip_path( ::cPrgName ),
> nLine := ::oBrwText:nRow
>
> which is a correct error message due to the PROTECTED scope of the
> nRow var.
>
> Some other vars that have the same problem are:
>
> aText
> lWordWrap
> nCol
> nFirstCol
> nFirstRow
> nRow
> nWordWrapCol
>
>
>
> best regards
>
> Teo
>
> _______________________________________________
> Harbour mailing list
> Harbour at harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
More information about the Harbour
mailing list