Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-25-2012, 04:40 PM
bibibibi bibibibi is offline
Registered User
 
Join Date: May 2012
Posts: 11
crt.Screen.WaitForString

Ciao, ho un piccolo problema nella ricerca.

ricerca = "aaaa_bbbb_cccc_dddd_eeee"

vTokens = Split(ricerca, "_")
For nIndex = 0 To UBound(vTokens) - 1
' MsgBox "Token at index " & nIndex & " is: " & vTokens(nIndex)
Next

If crt.Screen.WaitForString ( vTokens(1) ) Then
' MsgBox "bbbb is found"
Else
MsgBox "bbbb is not found"
Exit Sub
End If


Se quando appare bbbb durante lo scrolling allora va bene.. ma se appare una stringa ad esempio bbbbxxxx o xxxbbbb o xxbbbbxx la ricerca sempre positiva

io non voglio che sia positiva per bbbbxxxx o xxxbbbb o xxbbbbxx ma solo per bbbb esatto

help grazie mille
Reply With Quote
  #2  
Old 05-25-2012, 05:30 PM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Using a translation program to convert Italian to English:
Quote:
Hello, I have a small problem in the search.

If bbbb appears when scrolling when it's OK .. but if such a string appears bbbbxxxx or xxxbbbb xxbbbbxx or the search is always positive

I do not want it to be positive or bbbbxxxx xxxbbbb or xxbbbbxx but only for exact bbbb
Could you use space as part of the search?

For example, if your search strings were " aaaa " and " bbbb " (etc.) then you would not match "xxbbbbxx".

(O, in italiano, potresti utilizzare lo spazio come parte della ricerca?

Ad esempio, se le stringhe di ricerca erano " aaaa " e " bbbb " (etc.), allora non potrebbe corrispondere a "xxbbbbxx".)
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
  #3  
Old 05-25-2012, 06:29 PM
bibibibi bibibibi is offline
Registered User
 
Join Date: May 2012
Posts: 11
Smile :d

Monday at work I try it but I guess you're right ... it was really easy!!

you can use the space because my word is a former listing:

1) aaaa
2) bbbb
3) cccc
...
100) xxxx

stay tuned ! tnx
Reply With Quote
  #4  
Old 05-28-2012, 01:45 AM
bibibibi bibibibi is offline
Registered User
 
Join Date: May 2012
Posts: 11
Talking : )

thanks a lot it works!
Reply With Quote
  #5  
Old 05-28-2012, 10:47 AM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Excellent - thank you for posting confirmation that this works!
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:50 PM.