write to file with quick /using quiz instead

Joe Boyle joeboyle_adt@hotmail.com
Wed, 22 Sep 2004 19:25:36 +0100


sadly, you have to use similar code for each char in turn; but on the plus
side the revised code below might be more convenient and efficient - well at
least it will require fewer 600 char length defines.  

Once the amps are done, resulting in the creation of defined item
d'the'amps, then this defined item would be the target field for the same
cycle which might then search and replace the '>' char, and so on...

define d'amp1'pos = index (t_kvar, '&')

define d'amp2'pos = index (t_kvar[d'amp1'pos + 1, 600 ], '&')   &
if d'amp1'pos gt 0.5

define d'amp3'pos = index (t_kvar [ d'amp2'pos + 1, 600 ], '&') &
if d'amp2'pos gt 0.5

define d'ampn'pos = index (t_kvar [ d'amp3'pos + 1, 600 ], '&') &
if d'amp3'pos gt 0.5


define d'the'amps char * 600 =                &
t_kvar [ 1: d'amp1'pos - 1]                   &
+ "&"  +                                  &
t_kvar [d'amp1'pos + 1: d'amp2'pos - 1]       & 
+ "&"  +                                  &
t_kvar [d'amp2'pos + 1: d'amp3'pos - 1]       &
+ "&"  +                                  &
t_kvar [d'amp3'pos + 1: d'amp4'pos - 1]       & 
+ "&"  +                                  &
t_kvar [d'amp4'pos + 1:600]                   &
if d'ampn'pos gt 0.5                          &
..
etc...
..
else t_kvar [ 1: d'amp1'pos - 1]              &
+ "&"  +                                  &
t_kvar [d'amp1'pos + 1: d'amp2'pos - 1]       & 
+ "&"  +                                  &
t_kvar [d'amp2'pos + 1: d'amp3'pos - 1]       &
+ "&"  +                                  &
t_kvar [d'amp3'pos + 1: d'amp4'pos - 1]       & 
+ "&"  +                                  &
t_kvar [d'amp4'pos + 1:600]                   &
if d'amp4'pos gt 0.5                          &
..
etc...
..
t_kvar [ 1: d'amp1'pos - 1]          &
+ "&"  +                          &
t_kvar [ d'amp1'pos + 1 : 600 ]       & 
d'amp1'pos gt 0.5                  &
else t_kvar


The code is untested coz' I don't have access to a compiler - but I have
coded similar stuff in the past; and in any case the purpose is simply to
convey an idea.

I reckon that passing the uncensored subfile through quick is likely to
cause least pain all round.

P.S. if any one would be kind enough to let me dial in to their server for
PH testing it would be most appreciated. Of course I realize how unlikely
this is - but if you don't ask ....

Regards, Joe.

This e-mail and all information contained in it is confidential and may be
legally privileged. If you are not the intended recipient, your access to
this e-mail is unauthorized. Any use, dissemination, distribution,
publication or copying by you of this e-mail or any of the information
contained within it is prohibited and may be unlawful. Do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. The content of this 
e-mail and any attachments sent with it may have been altered without the
consent or knowledge of the author.

-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of Pickering, John
(NORBORD)
Sent: 22 September 2004 17:41
To: Jari.Kaljunen@teliasonera.com; powerh-l@lists.sowder.com
Subject: RE:write to file with quick /using quiz instead

>But what do you recommend to convert the characters  &,<,>,' and "
>to xml-entities if quiz or qtp is used produce the file?

How about creating the output as a subfile with Quiz since that seems to be
quite fast and then using an editor to change the special characters to
their xml equivalents? This would seem like a much easier approach.
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.