Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reverse comma-delimited string
Message
De
04/09/2019 16:56:13
 
 
À
04/09/2019 16:47:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01670542
Message ID:
01670583
Vues:
69
>Rick,
>If this is something worth timing for you, then wouldn't you think creating a FLL with C++ or Activex with C#? I made a quick one liner with C# and it was 4x faster than the fastest (alines).
>
>
>string MyReverse(string lcForward)
>{
>	return string.Join(", ", lcForward.Split(',').Select(f => f.Trim()).Reverse());
>}
>
Some elegant code there, Cetin. I am always impressed with your abilities.

I had that thought. I wasn't prepared to so invest in it. :-)

In the app this is for, it's used to reverse the order of target email addresses in in a To:, Cc:, or Bcc: line. There should only be a couple hundred at most, and more than likely fewer than ten 98% of the time.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform