Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XP Search function in VFP forms
Message
From
13/09/2004 12:05:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/09/2004 11:56:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00941629
Message ID:
00941634
Views:
6
>Hi everyones.
>
>This is not really a VFP question but it's related. In windows, the search function allows to search for a word inside a file. I used it very often in windows 2000 to find out every forms or program that contains a specific word (ex: a table name or a field name or a command I wanted to replace). Now I have XPPro and this function doesn't work anymore. It seems XPPRo won't look into VFP fiels (it seems to work only with .txt and .doc and similar files).
>
>Am I missing a XPPro setup or parameters here or is it the way it now works ?

Including VFP files need the VFP extensions be added for search. I don't know the author to credit :( this .bat file takes care of it :

* registervfpextensions.bat

@echo off
setlocal
if {%1}=={} goto syntax
set ext=%1
if {%ext:~0,1%} NEQ {.} goto syntax
@echo REGEDIT4>"%TEMP%\RegisterPTFwrk.REG"
@echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\%ext%\PersistentHandler]>>"%TEMP%\RegisterPTFwrk.REG"
@echo @="{5e941d80-bf96-11cd-b579-08002b30bfeb}">>"%TEMP%\RegisterPTFwrk.REG"
:loop
shift
if {%1}=={} goto :done
set ext=%1
if {%ext:~0,1%} NEQ {.} goto syntax
@echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\%ext%\PersistentHandler]>>"%TEMP%\RegisterPTFwrk.REG"
@echo @="{5e941d80-bf96-11cd-b579-08002b30bfeb}">>"%TEMP%\RegisterPTFwrk.REG"
goto loop
:syntax
@echo Syntax: RegisterPTF .ex1 [.ex2] [.ex3] ... [.exn]&goto :EOF
endlocal
goto :EOF
:done
rem regedit /s "%TEMP%\RegisterPTFwrk.REG"
endlocal

OTOH when there is code references in VFP8 and up and filer in all VFP versions I don't even use this:

do form home()+'tools\filer\filer'

does it well.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform