Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimization on the Occurs() method
Message
From
10/08/2006 12:02:30
 
 
To
10/08/2006 05:01:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01144405
Message ID:
01144554
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform