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

2009-05-08 Thread Martin Friebe
Arí Ricardo Ody wrote: Suppose the following structure: 01 a-1. 03 b-1 pic xxx. 03 b-2 pic 999. 03 b-3. 05 c-1 pic aaa. 05 c-2. 07 d-1 pic zzz. 07 d-2 pic xxx. 05 c-3 pic 99. 03 b-4 pic zzz. 03 b-5. 05 e-1 pic zzz. All line not

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

2009-05-08 Thread Arí Ricardo Ody
Show me an example of what you are talking about please. I think I don't understand your post. [ ] 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

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

2009-05-08 Thread Arí Ricardo Ody
It's out matter but, I'm working with legacy modernization. The company I work deals with legacy modernization. Mainly in mainframes [ ] At 19:40 7/5/2009, you wrote: On Thu, 2009-05-07 at 18:12 -0300, Arí Ricardo Ody wrote: Suppose the following structure: 01 a-1. 03 b-1 pic xxx.

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

2009-05-08 Thread Arí Ricardo Ody
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

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

2009-05-08 Thread fpclist
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

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

2009-05-08 Thread David W Noon
On Fri, 2009-05-08 at 09:41 -0300, Arí Ricardo Ody wrote: It's out matter but, I'm working with legacy modernization. The company I work deals with legacy modernization. Mainly in mainframes So, are you trying to convert COBOL code to some more modern language? If not, I still don't

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

2009-05-08 Thread Arí Ricardo Ody
The conversation is becaming off topic. I wouldn't like to discuss this matter here. We have a great expertise in language conversor development here. We can discuss it in private. Be my guest. I'm needing a solution to the problem I propose. Cheers Ricardo Sao Paulo - Brasiç At 11:33

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

2009-05-08 Thread Felipe Monteiro de Carvalho
I didn't fully understand the original problems. You have already posted an example input, please add also an example output for the same input for the routine you are trying to build. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist -

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

2009-05-08 Thread Arí Ricardo Ody
Hi Felipe! If you was talking with me, please explain better. [ ] Ricardo At 14:49 8/5/2009, you wrote: I didn't fully understand the original problems. You have already posted an example input, please add also an example output for the same input for the routine you are trying to build. --

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

2009-05-08 Thread Felipe Monteiro de Carvalho
Ah, now I see that you already gave an example output ... sorry -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2009-05-08 Thread Mattias Gaertner
On Thu, 07 May 2009 18:12:50 -0300 Arí Ricardo Ody ari@japinfo.com.br wrote: Suppose the following structure: 01 a-1. 03 b-1 pic xxx. 03 b-2 pic 999. 03 b-3. 05 c-1 pic aaa. 05 c-2. 07 d-1 pic zzz. 07 d-2 pic xxx. 05 c-3 pic 99.

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

2009-05-08 Thread Arí Ricardo Ody
No problema! At 15:01 8/5/2009, you wrote: Ah, now I see that you already gave an example output ... sorry -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2009-05-07 Thread David W Noon
On Thu, 2009-05-07 at 18:12 -0300, Arí Ricardo Ody wrote: Suppose the following structure: 01 a-1. 03 b-1 pic xxx. 03 b-2 pic 999. 03 b-3. 05 c-1 pic aaa. 05 c-2. 07 d-1 pic zzz. 07 d-2 pic xxx. 05 c-3 pic 99. 03 b-4 pic zzz. 03

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

2009-05-07 Thread Cox, Stuart TRAN:EX
There's some interesting ideas on how to store hierarchical data in tabular form available by googling how can I represent hierarchal data in a relational database? You might be able to linearize your hierarchical structure's data by using the techniques found there. Stu Cox Project

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

2009-05-07 Thread Doug Chamberlin
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