Forum search for "class_addMethod"
Posted: Fri Nov 14, 2014 1:48 pm
How I can search phrases like "class_addMethod"?
"No suitable matches were found."
"No suitable matches were found."
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
Define ScintillaID.i = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
Define Position.i, Min.i, Max.i, Text.s
Position = SendMessage_(ScintillaID, #SCI_GETCURRENTPOS, #Null, #Null)
Min = SendMessage_(ScintillaID, #SCI_WORDSTARTPOSITION, Position, #True)
Max = SendMessage_(ScintillaID, #SCI_WORDENDPOSITION, Position, #True)
For Position = Min To Max-1
Text + Chr(SendMessage_(ScintillaID, #SCI_GETCHARAT, Position, #Null))
Next
If Right(Text,1)="_"
Text=Left(Text,Len(Text)-1)
RunProgram("http://social.msdn.microsoft.com/search/en-us/windows/desktop?query="+Text+Chr(38)+"Function Refinement=181")
ElseIf Left(Text,4)="#PB_"
RunProgram("http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.purebasic.fr%2Fenglish+"+text)
ElseIf Left(Text,4)="#SCI"
RunProgram("http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.purebasic.fr%2Fenglish+"+text)
ElseIf Left(Text,1)="#"
Text=Mid(Text,2)
RunProgram("http://social.msdn.microsoft.com/search/en-us/windows/desktop?query="+Text+Chr(38)+"Refinement=181")
Else
RunProgram("http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.purebasic.fr%2Fenglish+"+text)
EndIf
EndI think the search limits the length of searched items. It won't allow searches for words where the number of letters are less than 4. If the search term is only 3 letters you can add an asterisk (making the search term 4 characters) to use a wildcard search (i.e. use "GUI*" instead of "GUI").Lebostein wrote:How I can search phrases like "class_addMethod"?