Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code References - Opening .asp files with Modify Command rather than notepad? 1

Status
Not open for further replies.

GriffMG

Programmer
Mar 4, 2002
6,333
FR
I use the VFP IDE, because I love it, to maintain classic asp files as well as VFP projects.

One of the reasons is because I rather like the Code References, it's good for searching.

Only snag is, unlike VFP files, if I double click on a asp code file in the Code References it is opened in Notepad, rather than Modify Command
as I would like it to be.

I can get it to open in VFP, but it starts a new copy of it and that's not what I want.

It was the thread about a mysterious clock.bmp that prompted me to ask - does anyone know how to get the code references to use MODI COMM?

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Griff,

GoSearch4 version 5 is MUCH faster and more elaborate than Code Reference for searching an object/text/or method than codererefence.

Koen
 
Griff,

I wonder if you could go into Folder Options / File Types (from within Windows Explorer) and reset the Edit type for ASP files to VFP. I haven't tried this myself, but it might be worth trying. But presumably it will open the file in a new instance of VFP, which is probably not what you want.

The only other thing I can suggest is to look in XSource to see if the source code for FOXREF.APP is present. If so, you might be able to modify it. You could then compile it to an APP with a different name, and set the _FOXREF system variable to point to that app.

Both of the above are a bit of a long shot. Maybe someone else can come up with a better solution.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Maybe, but I'm a luddite and like working in the IDE if possible.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Hi Mike

The source is there, and I am looking at it now, but I thought maybe someone else has done this B-)

I have tried making .asp open in VFP, but it is clumsy, opens a new copy of VFP and throws an error because it doesn't understand the syntax.
Which is odd, because I have the .asp files in a project under the code collection and modify there opens it perfectly

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Ah ha!

It was easier to *FIND* than I expected, and it *LOOKS* like all I need do is add an m.cFileType == "ASP" to a program.

Here goes nothing.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Worked perfectly first go.

Thank you Mike for the little push.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
In case anyone else is interested, you are looking for the OpenSource function in the FoxRefEngine.prg

And Change
Code:
						CASE m.cFileType == "PRG" OR ;
						     m.cFileType == "MPR" OR ;
						     m.cFileType == "QPR" OR ;
						     m.cFileType == "SPR" OR ;
						     m.cFileType == "H" OR ;
						     m.cFileType == "FRX" OR ;
						     m.cFileType == "LBX" OR ;
						     m.cFileType == "MNX" OR ;
						     m.cFileType == "TXT" OR ;
						     m.cFileType == "LOG" OR ;
						     m.cFileType == "ME"

to

Code:
						CASE m.cFileType == "PRG" OR ;
						     m.cFileType == "MPR" OR ;
						     m.cFileType == "QPR" OR ;
						     m.cFileType == "SPR" OR ;
						     m.cFileType == "H" OR ;
						     m.cFileType == "FRX" OR ;
						     m.cFileType == "LBX" OR ;
						     m.cFileType == "MNX" OR ;
						     m.cFileType == "TXT" OR ;
						     m.cFileType == "LOG" OR ;
						     m.cFileType == "ASP" OR ;
						     m.cFileType == "ME"

Then rebuild the app, and rename the old one to FoxRefOld.app and pop your new one in place of it.


Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Well, first of all text files are opened by MODIFY FILE.

The Code References Sources are indeed in xsrouce.zip as a foxref.pjx project and it uses the EDITSOURCE() function, that has different parameterizations for SCX,VCX, DBF, DBC, PRG etc.

You could indeed add the ASP file extension there for the PRG lieke file case.

Where? Simply use code references and search for EDITSOURCE in the foxref.pjx amd you'll find that

Bye, Olaf.



Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top