[fpc-pascal] A complex trouble(at least for me)

fpclist at silvermono.co.za fpclist at silvermono.co.za
Fri May 8 16:18:54 CEST 2009


Have you considered using XML to represent and structure your data?

If you must do it with TStringList, you could declare a dynamic array of 
TStringList and instantiate the array elements at will at runtime. Also, each 
string entry in the TStringList can hold a pointer to any object that you 
declare in your application. These objects are added by calling the 
TStringList.AddObject method. Refer to the FPC RTL docs for more information.

//*******************************************
On Friday 08 May 2009 15:09:36 Arí Ricardo Ody wrote:
> I think I don'understand 'cause I need a
> TStringList with a known different nam for each
> group item(as proposed in the original e-mail)
>
> [ ]
>
> At 20:51 7/5/2009, you wrote:
> >Arí Ricardo Ody wrote:
> >>[snipped]
> >>I can't create StringList with a variable name.
> >>I must previously  declare each one in my
> >>pascal source. How can I solve the trouble proposed?
> >
> >I don't understand this part of your message.
> >Does this mean you think you cannot dynamically
> >create TStringList instances in your code?
> >
> >_______________________________________________
> >fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> >http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list