Hi,
I'm using my own classes linked from my library. It works fine, but I can't inspect this
object created from my class. The Inspect variable window displays a closed TreeView item
and double clicking on it doesn't expand it.
Any advise?
Gejza Horvath
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Own objects in debugger
-
- Mensajes: 281
- Registrado: Mar Ago 15, 2006 1:50 pm
- ignacio
- Site Admin
- Mensajes: 9466
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Own objects in debugger
Gejz,
In order to see your own class members you must use the command PROPERTY
instead of DATA.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=46435338@ozsrv2.ozlan.local...]46435338@ozsrv2.ozlan.local...[/email]
> Hi,
>
> I'm using my own classes linked from my library. It works fine, but I
> can't inspect this object created from my class. The Inspect variable
> window displays a closed TreeView item and double clicking on it doesn't
> expand it.
> Any advise?
>
> Gejza Horvath
>
In order to see your own class members you must use the command PROPERTY
instead of DATA.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=46435338@ozsrv2.ozlan.local...]46435338@ozsrv2.ozlan.local...[/email]
> Hi,
>
> I'm using my own classes linked from my library. It works fine, but I
> can't inspect this object created from my class. The Inspect variable
> window displays a closed TreeView item and double clicking on it doesn't
> expand it.
> Any advise?
>
> Gejza Horvath
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Own objects in debugger
Gejza,
> In order to see your own class members you must use the command PROPERTY
> instead of DATA.
Also, derive your classes from TComponent.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
> In order to see your own class members you must use the command PROPERTY
> instead of DATA.
Also, derive your classes from TComponent.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
-
- Mensajes: 281
- Registrado: Mar Ago 15, 2006 1:50 pm
Own objects in debugger
Thanks,
this works fine, but a little problem. In class declaration i have:
CLASS GenFile FROM TComponent
PUBLISHED:
PROPERTY Size INIT 0
PROPERTY Position INIT 0
PROPERTY Bof INIT .T.
PROPERTY Eof INIT .T.
PROPERTY Err INIT 0
PROPERTY Handle
PROPERTY Name
PROPERTY FullName
PROPERTY Extension
PROPERTY BytesToRead INIT 2048
PROPERTY Date INIT CTOD(SPACE(8))
PROPERTY Time
PROPERTY Path
PROPERTY Drive
PROPERTY FileName
..
..
ENDCLASS
*************************
METHOD New(cFname) CLASS GenFile
..
..
..
WITH OBJECT Self
:Extension := SUBSTR(cFname,nPosDot + 1)
:Name := cFileName // Nazov suboru bez cesty ale s rozsirenim
:FullName := :Drive + :Path + :Name // plny nazov
:Date := FILEDATE(:FullName)
:Time := FILETIME(:FullName)
:Size := FILESIZE(:FullName)
:Handle := 0
:Position := 0
:BytesToread := 0
:Bof := .T.
:Eof := .T.
:FileName := TFileName():New(:FullName)
END WITH
..
..
RETURN Self
************************
CLASS TxtFile FROM GenFile
PUBLISHED:
PROPERTY Delimiter INIT CHR(13)+CHR(10) // oddelovac riadkov
PROPERTY LineNum INIT 1 // cislo Riadku, na ktorom stojime
PROPERTY LineLen INIT 255 // Dlzka riadku
METHOD New // Velkost bloku bude riadok
METHOD ReadLn // Nacitaj N riadkov
METHOD WriteLn
METHOD Open
METHOD Close
ENDCLASS
********************************
The TxtFile is a subclass of the GenFile class. I'm using this class to read a text file
line by line and show it in MemoEdit:
..
..
oFile := TxtFile():New("D:projektmulti.prg")
oFile:Open()
DO WHILE ! oFile:Eof
cLine := oFile:ReadLn()
::oMemo1:Value += cLine + CRLF
ENDDO
oFile:Close()
..
..
I have problem with property FileName, which is a standard Xailer class. In the Inspect
variable window now all the oFile variable properties are visible, the Filename displays
object of class TFileName, but I can't expand it double clicking on it, to show his
properties. Any advise?
Gejza Horvath
this works fine, but a little problem. In class declaration i have:
CLASS GenFile FROM TComponent
PUBLISHED:
PROPERTY Size INIT 0
PROPERTY Position INIT 0
PROPERTY Bof INIT .T.
PROPERTY Eof INIT .T.
PROPERTY Err INIT 0
PROPERTY Handle
PROPERTY Name
PROPERTY FullName
PROPERTY Extension
PROPERTY BytesToRead INIT 2048
PROPERTY Date INIT CTOD(SPACE(8))
PROPERTY Time
PROPERTY Path
PROPERTY Drive
PROPERTY FileName
..
..
ENDCLASS
*************************
METHOD New(cFname) CLASS GenFile
..
..
..
WITH OBJECT Self
:Extension := SUBSTR(cFname,nPosDot + 1)
:Name := cFileName // Nazov suboru bez cesty ale s rozsirenim
:FullName := :Drive + :Path + :Name // plny nazov
:Date := FILEDATE(:FullName)
:Time := FILETIME(:FullName)
:Size := FILESIZE(:FullName)
:Handle := 0
:Position := 0
:BytesToread := 0
:Bof := .T.
:Eof := .T.
:FileName := TFileName():New(:FullName)
END WITH
..
..
RETURN Self
************************
CLASS TxtFile FROM GenFile
PUBLISHED:
PROPERTY Delimiter INIT CHR(13)+CHR(10) // oddelovac riadkov
PROPERTY LineNum INIT 1 // cislo Riadku, na ktorom stojime
PROPERTY LineLen INIT 255 // Dlzka riadku
METHOD New // Velkost bloku bude riadok
METHOD ReadLn // Nacitaj N riadkov
METHOD WriteLn
METHOD Open
METHOD Close
ENDCLASS
********************************
The TxtFile is a subclass of the GenFile class. I'm using this class to read a text file
line by line and show it in MemoEdit:
..
..
oFile := TxtFile():New("D:projektmulti.prg")
oFile:Open()
DO WHILE ! oFile:Eof
cLine := oFile:ReadLn()
::oMemo1:Value += cLine + CRLF
ENDDO
oFile:Close()
..
..
I have problem with property FileName, which is a standard Xailer class. In the Inspect
variable window now all the oFile variable properties are visible, the Filename displays
object of class TFileName, but I can't expand it double clicking on it, to show his
properties. Any advise?
Gejza Horvath
- ignacio
- Site Admin
- Mensajes: 9466
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Own objects in debugger
Gejza,
TFileName() class does not have any DATA members, all are methods.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=46446d7d@ozsrv2.ozlan.local...]46446d7d@ozsrv2.ozlan.local...[/email]
> Thanks,
> this works fine, but a little problem. In class declaration i have:
>
> CLASS GenFile FROM TComponent
> PUBLISHED:
> PROPERTY Size INIT 0
> PROPERTY Position INIT 0
> PROPERTY Bof INIT .T.
> PROPERTY Eof INIT .T.
> PROPERTY Err INIT 0
> PROPERTY Handle
> PROPERTY Name
> PROPERTY FullName
> PROPERTY Extension
> PROPERTY BytesToRead INIT 2048
> PROPERTY Date INIT CTOD(SPACE(8))
> PROPERTY Time
> PROPERTY Path
> PROPERTY Drive
>
> PROPERTY FileName
> .
> .
> ENDCLASS
> *************************
> METHOD New(cFname) CLASS GenFile
> .
> .
> .
>
> WITH OBJECT Self
> :Extension := SUBSTR(cFname,nPosDot + 1)
> :Name := cFileName // Nazov suboru bez cesty ale s
> rozsirenim
> :FullName := :Drive + :Path + :Name // plny nazov
> :Date := FILEDATE(:FullName)
> :Time := FILETIME(:FullName)
> :Size := FILESIZE(:FullName)
> :Handle := 0
> :Position := 0
> :BytesToread := 0
> :Bof := .T.
> :Eof := .T.
> :FileName := TFileName():New(:FullName)
> END WITH
> .
> .
> RETURN Self
> ************************
>
> CLASS TxtFile FROM GenFile
> PUBLISHED:
> PROPERTY Delimiter INIT CHR(13)+CHR(10) // oddelovac riadkov
> PROPERTY LineNum INIT 1 // cislo Riadku, na ktorom stojime
> PROPERTY LineLen INIT 255 // Dlzka riadku
>
>
> METHOD New // Velkost bloku bude riadok
> METHOD ReadLn // Nacitaj N riadkov
> METHOD WriteLn
> METHOD Open
> METHOD Close
>
> ENDCLASS
> ********************************
>
>
> The TxtFile is a subclass of the GenFile class. I'm using this class to
> read a text file line by line and show it in MemoEdit:
> .
> .
> oFile := TxtFile():New("D:projektmulti.prg")
> oFile:Open()
> DO WHILE ! oFile:Eof
> cLine := oFile:ReadLn()
> ::oMemo1:Value += cLine + CRLF
> ENDDO
> oFile:Close()
> .
> .
>
> I have problem with property FileName, which is a standard Xailer class.
> In the Inspect variable window now all the oFile variable properties are
> visible, the Filename displays object of class TFileName, but I can't
> expand it double clicking on it, to show his properties. Any advise?
>
>
> Gejza Horvath
>
TFileName() class does not have any DATA members, all are methods.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=46446d7d@ozsrv2.ozlan.local...]46446d7d@ozsrv2.ozlan.local...[/email]
> Thanks,
> this works fine, but a little problem. In class declaration i have:
>
> CLASS GenFile FROM TComponent
> PUBLISHED:
> PROPERTY Size INIT 0
> PROPERTY Position INIT 0
> PROPERTY Bof INIT .T.
> PROPERTY Eof INIT .T.
> PROPERTY Err INIT 0
> PROPERTY Handle
> PROPERTY Name
> PROPERTY FullName
> PROPERTY Extension
> PROPERTY BytesToRead INIT 2048
> PROPERTY Date INIT CTOD(SPACE(8))
> PROPERTY Time
> PROPERTY Path
> PROPERTY Drive
>
> PROPERTY FileName
> .
> .
> ENDCLASS
> *************************
> METHOD New(cFname) CLASS GenFile
> .
> .
> .
>
> WITH OBJECT Self
> :Extension := SUBSTR(cFname,nPosDot + 1)
> :Name := cFileName // Nazov suboru bez cesty ale s
> rozsirenim
> :FullName := :Drive + :Path + :Name // plny nazov
> :Date := FILEDATE(:FullName)
> :Time := FILETIME(:FullName)
> :Size := FILESIZE(:FullName)
> :Handle := 0
> :Position := 0
> :BytesToread := 0
> :Bof := .T.
> :Eof := .T.
> :FileName := TFileName():New(:FullName)
> END WITH
> .
> .
> RETURN Self
> ************************
>
> CLASS TxtFile FROM GenFile
> PUBLISHED:
> PROPERTY Delimiter INIT CHR(13)+CHR(10) // oddelovac riadkov
> PROPERTY LineNum INIT 1 // cislo Riadku, na ktorom stojime
> PROPERTY LineLen INIT 255 // Dlzka riadku
>
>
> METHOD New // Velkost bloku bude riadok
> METHOD ReadLn // Nacitaj N riadkov
> METHOD WriteLn
> METHOD Open
> METHOD Close
>
> ENDCLASS
> ********************************
>
>
> The TxtFile is a subclass of the GenFile class. I'm using this class to
> read a text file line by line and show it in MemoEdit:
> .
> .
> oFile := TxtFile():New("D:projektmulti.prg")
> oFile:Open()
> DO WHILE ! oFile:Eof
> cLine := oFile:ReadLn()
> ::oMemo1:Value += cLine + CRLF
> ENDDO
> oFile:Close()
> .
> .
>
> I have problem with property FileName, which is a standard Xailer class.
> In the Inspect variable window now all the oFile variable properties are
> visible, the Filename displays object of class TFileName, but I can't
> expand it double clicking on it, to show his properties. Any advise?
>
>
> Gejza Horvath
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com