Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need new UDF strreplace
Message
De
09/05/2007 13:01:55
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
09/05/2007 12:59:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01223626
Message ID:
01223870
Vues:
32
>>Thanks, but I don't think so. :) It's got to be positional. That would overwrite every occurance of that value throughout the string, no?
>>
>>Given a string with a specified delimiter
>>
>>ISA*00*00*ZZ*TEST^
>>
>>remove the ZZ and replace it with MY. It's in the 4th "field" position.
>>
>>Thanks!
>
>Hi Mike,
>
>Most well-formed EDI documents are (or can be) one long string, so I'm not sure what you are asking for is doable.
>
>If you break up the transactions into segments it might be possible, but I don't think there is a 'generic' solution. I would guess that you typically need to know what Loop/Segment you are dealing with.

Yes, each segment would be treated as a "record". The ISA line has preset field "positions".

>
>OTOH, if you are just looking to change qualifiers you can probably just do a global search and replace (in the lines of business I deal with, I'm only aware of one qualifier that has multiple definitions, unfortunately that one is ZZ which is usually defined by trading partner agreement.
>
>Bruce
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform