×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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 Smileing

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.

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

Griff,

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

Koen

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

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

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

(OP)
Maybe, but I'm a luddite and like working in the IDE if possible.

Regards

Griff
Keep Smileing

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.

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

(OP)
Hi Mike

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

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 Smileing

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.

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

(OP)
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 Smileing

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.

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

(OP)
Worked perfectly first go.

Thank you Mike for the little push.

Regards

Griff
Keep Smileing

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.

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

(OP)
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 Smileing

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.

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

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
https://www.doschke.name

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

That overalapped with your post, you found what to change.

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

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

Well done in finding what to change, Griff, and thanks for sharing it.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close