473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

By George I have got it

Dököll
2,364 Expert 2GB
To aid in our new finding, let us bring in Bram Stockers Dracula "1992", scene with Keanu Reeves and Gary Oldman:

Text with single and double Hard returns:

should leave this room and go to any other parts of the castle
it is owned and holds many bad memories

Be warned

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim P As Long
  3.      Dim s1 As String
  4.      s1 = Text6(0).Text
  5.      s1 = Replace(Replace(Replace(s1, vbNewLine & vbNewLine, _
  6.      vbNullString), vbNewLine, vbNullString), vbNullString, vbNewLine)
  7.      Text6(0).Text = s1
  8.  
  9. P = WordFoundInText(Text3.Text, Text6(0).Text)
  10.   If P Then
  11.     Text1.Text = "True"
  12.     Text2.Text = Text3.Text
  13.   Else
  14.  
  15.     Text6(0).SetFocus
  16.     Text6(0).SelLength = Len(Text3.Text)
  17.     Text1.Text = "Darn!"
  18.     Text2.Text = "What?"
  19.   End If
  20.  
  21.  
Here is the output, Killer:

should leave this room and go to any other parts of the castle it is owned and holds many bad memories Be warned

Killer, if I did not thank you yet, you're are the best :-)

Boy, I've learned so much here, my professor will be happy to hear about this, should also relay to Steve.

By the way, good buddies, check out Avisto, I do not know why I am telling you this, you guys are experts already; just spreading the good word.

I found out many ways to make our code faster through this site. vbNullString as opposed to " ", vbBinaryCompare, instead of vbTextCompare, vbNewLine, in the place of vbCrLF, and/or its twins.

Barring any unforeseen adventures with parenting or the code I should have more than enough time to complete this project, now 20% done.

In a bit, Killer, and good people of our good, good VB forum. Will post a "dictionary program" here, a language translator really for other Newbies :-)

Dököll
Jan 14 '07 #1
4 1251
willakawill
1,646 1GB
vbNewLine is not 'faster' than vbCrLf. vbNewLine is platform specific. Sometimes it is 13 and 10 sometimes it is just 10. vbCrLf is always 13 & 10. They are constants and not functions so there is not a speed issue as they are replaced by the compiler.

vbBinaryCompare, instead of vbTextCompare
this is not a choice of speed but one of logic. vbBinaryCompare is case sensitive, vbTextCompare is not
Jan 15 '07 #2
Killer42
8,435 Expert 8TB
Glad to help. I'd just like to say the following...
  • Being labelled an "expert" is pretty meaningless, really. Everybody who comes to the site has different skills in different areas.
  • Unless you're dealing with huge volumes of data, I doubt the speed will ever be an issue.
  • I certainly can't take sole credit for helping you along - I'm sure willakawill and others have put in heaps of effort.
  • What the heck is Avisto?
Jan 15 '07 #3
Dököll
2,364 Expert 2GB
Point taken, and again, I am still learning...

Still think you guys are experts; only attempting to show respect to those who know a lot more than I do about VB. Wife thinks I am a smarty, told her to read this group...She's very supportive. Nevertheless, I am with you on his one Killer, different skills for different folks.

And you could be right as well there Will, the site I am read this from could be also be right, as I am right in the middle...I just take it all in and learn: http://www.aivosto.com/vbtips/stringopt.html. Please excuse the typo, Killer, it's Aivosto, check it out. Should have added this previously for all to see.

Anyway, I was coming here to report "No Problems", should sometimes report I am doing well, still have the muscle, played a lot more with the boys, and I have managed to sleep well last night :-)

Killer, Will, VB fans, I have massive amounts of if statements to deal with. One reason why, I was happy to report Aivosto as one site to check out. It, and the the friendly reminder to use LCase (pointed out the RollingStone fella, no names need mentioned) have helped reduce data calls. No longer have to add Rain and rain to make sure I get it all.

Now I did not know, BinaryCompare was case sensitive, must watch out for that, thanks ;-)

Look, I've written too much, Again. All is well, as said, my friends, no deal-breakers, except our 93 s Turbo Saab's defroger/defroster does not work this morning (too much ice on the windshield), would be nice if there was a code for that :-)

Should be able to say hello soon and again...

Dököll
Jan 15 '07 #4
Dököll
2,364 Expert 2GB
Speed is not an issue, you were right...The application will not pick up all words at once. In some instances, 3 or 4 words will be found, further testing proved speed is only an issue when duringn testing I add all words that must be collected, thus, all Textboxes are filled, takes merely 5 seconds per frame...
Jan 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ChronicFatigue | last post by:
Given that some browsers dont have javascript enabled.... do developers try to avoid using javascript when a php alternative can be used? What sort of alternative php scripts are often used?
2
by: Mo | last post by:
Have any idea about regular expression ? I posted this question to other newsgroup, but I'm still hungry for it. I tried to change any numeric characters to Zero like following; $aaa =...
8
by: Randell D. | last post by:
I have just recompiled, upgraded to PHP 4.3.4. As an exercise (and curiosity) I've decided to test out PDF functions and got the test in the PHP online manual working. I had one problem whereby...
1
by: Harry Koh | last post by:
Bonjour I'm looking for a script of a caddy / shopping cart / basket in php/mysql - multilangage - Easy to integrate in an existing interface - easy to handle "in-a-minute" ( NECCESSARY) -...
11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
3
by: Ian.H | last post by:
Hi all, I've been testing out some configs on this box out of curiousity more than anything, but looking at various sites and of course, php.net regarding safe_mode_exec_dir, it appears that if...
3
by: rawCoder | last post by:
Hi, Ever been to George Shepherd's Windows Forms FAQ site at Sysfusion http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp Great site with almost all the How-To stuff related to Windows Forms. ...
0
by: John Redmond | last post by:
I would like to draw attention to George at www.limpidsoft.com. It is small and pretty fast and, as far as I know, compliant with all of the W3C XSLT 1.0 recommendatio. It is presently available...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.