Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoFish for VFP versions before 9 #279

Open
Jimrnelson opened this issue Jul 27, 2024 · 4 comments
Open

GoFish for VFP versions before 9 #279

Jimrnelson opened this issue Jul 27, 2024 · 4 comments

Comments

@Jimrnelson
Copy link
Collaborator

@myearwood1

Mike, there's something you wrote some time ago that has been stuck in the back of my mind:

We have to keep the application in vfp6, but run GoFish in 9. We try not to open things in 9 in case they get converted.

I assume from this that you can use GF to find text but do not double-click in the grid to open your code for editing. Instead, you must go back to your session in VFP6 and manually open the file to be edited and locate the search text.

I would find this quite tiresome and cumbersome.

So I have been wondering if the following suggestion would be helpful:

A new option, so that when you double-click on a row in the grid, instead of opening the code directly, the clipboard is filled with code to be pasted into the Command window in your VFP6 session:

Modify Command Somefile.prg Range nStartCharacter, nEndCharacter

I believe that this is likely quite straightforward to implement.

@myearwood1
Copy link

Interesting idea. I'd appreciate any improvement. Since we can not do incremental search in the project manager, I built a small utility screen that also checks out the module from source safe.

If I could customize what was put in the copy paste buffer I could

Do form myproj with 'filename.ext'

@Jimrnelson
Copy link
Collaborator Author

@myearwood1

I certainly will want to provide you with a way to customize this the way you need.

The VFP function used in GF to open files for editing is EditSource:

EditSource(cFilename [, nLineNo] [, cClassName] [, cMethodName|cProcName])

The default behavior for this new feature will be to paste the appropriate call to EditSource into the clipboard.

The customizable behavior will be that you will be able to enter a call to a custom UDF, something like:

MyCustomEditSource(cFilename [, nLineNo] [, cClassName] [, cMethodName|cProcName])

@myearwood1
Copy link

@Jimrnelson

Allow me to remind you of the idea of building to an exe. For those who are stuck in a previous version, as I am, launching a GoFish exe would be possible from VFP without having vfp9 installed. You could compile the exe, copy it away, compile the app, copy the exe back and distribute both, so the user could decide which to use.

@Jimrnelson
Copy link
Collaborator Author

@myearwood1

I am unable to build the EXE. I get the following error:

image

Can you build it? You should have all the source code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants