[fpc-pascal] XML read

2011-06-10 Thread Marcos Douglas
Hi, What is the more simpler way to get all text in each paragraph in the XML below, using fcl-xml? For example: Page 1 --- Para 1: -1524 -888 -14/06/06 Para 2 -TEXT 2 Page 2 --- Para 1 --TEXT page 2 I need each paragraph in a TStringList. granularity=line

Re: [fpc-pascal] TFPDataHashTable

2011-06-10 Thread Claudio Lo Gaffo
El 10/06/2011 05:06 p.m., Joseph Montanez escribió: I am tring to understand how to use TFPDataHashTable and upon using it I just manage to crash the application. program hashdemo; uses contnrs; var HTable: TFPDataHashTable; Test: String; node: THTCustomNode; begin Test := 'terr';

Re: [fpc-pascal] TFPDataHashTable

2011-06-10 Thread Michael Van Canneyt
On Fri, 10 Jun 2011, Joseph Montanez wrote: I am tring to understand how to use TFPDataHashTable and upon using it I just manage to crash the application. program hashdemo; uses contnrs; var HTable: TFPDataHashTable; Test: String; node: THTCustomNode; begin Test := 'terr'; HTable.creat

[fpc-pascal] TFPDataHashTable

2011-06-10 Thread Joseph Montanez
I am tring to understand how to use TFPDataHashTable and upon using it I just manage to crash the application. program hashdemo; uses contnrs; var HTable: TFPDataHashTable; Test: String; node: THTCustomNode; begin Test := 'terr'; HTable.create; HTable.add('test', @Test); { <-- Crashe

Re: RE : RE : [fpc-pascal] Re: Array of byte from a COM object

2011-06-10 Thread Marcos Douglas
On Fri, Jun 10, 2011 at 10:26 AM, Ludo Brands wrote: > > > > No. This method belongs a COM object. I don't have the > > definition, just know that is a array of byte. > > Use OleView to get the IDL. It is part of MS platform SDK or can be > downloaded separately from MS. Talking to COM objects wit

RE : RE : [fpc-pascal] Re: Array of byte from a COM object

2011-06-10 Thread Ludo Brands
> No. This method belongs a COM object. I don't have the > definition, just know that is a array of byte. Use OleView to get the IDL. It is part of MS platform SDK or can be downloaded separately from MS. Talking to COM objects without having the IDL is, well, "adventuruous". Ludo _

Re: RE : [fpc-pascal] Re: Array of byte from a COM object

2011-06-10 Thread Marcos Douglas
On Thu, Jun 9, 2011 at 2:20 PM, Ludo Brands wrote: > > If the Assert(VarType(V) = varByte or varArray); is not raising an error > then you are not getting a Safearray. VarArrayLock is for safearrays. If you > are getting an array of byte, you should be able to access the bytes as > V[i]. Yes, an