Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimization on the Occurs() method
Message
De
10/08/2006 12:02:30
 
 
À
10/08/2006 05:01:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01144405
Message ID:
01144554
Vues:
17
>However be warned that function unlike its name suggests (and from VFP toolkit) is not one to one match VFP's occurs() behavior. It's arguable which one is correct (probably answer is depends). ie:
>input string: aaaaa
>search: aa
>That'd return 4 where VFP occurs() would return 2. IOW the one in the toolkit continues search from found+1, not found+searchStrlen.

Good point, I have been wondering about that last night.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform