One last tool from me and Matt Slay

67 views
Skip to first unread message

Jim Nelson

unread,
Feb 2, 2022, 6:29:52 PM2/2/22
to foxpr...@googlegroups.com

Hi everybody --

 

In honor of my very good friend, the late Matt Slay, I want to share the last tool we collaborated on.

 

The tool is not actually our concept at all, as it derives from two other tools that have been in the community for a long time (see the original message, below, that got us started.)

 

 

All that we did was to customize an existing tool, add some features, eliminate some bugs and provide some customization.  (Actually, not much to get excited about.)

 

It's called rather simply:     Do Form Explorer with (Object Reference)

 

The trick to making this a really valuable tool was to find the following unexpected way to call it.  We have added the following line of code into our production code and also for use in our IDE: 

On Key Label F9   Do Form Explorer with Sys(1270)

You can invoke Explorer at any time by hovering over any object in any form and using the hot key, and Explorer will open for that object.

 

We find that this is invaluable in Production; it also works in IDE the same way although we do not use it there as often.

 

One last thing:  a hidden UI feature is the ability to edit properties by double-clicking in the value column of the grid.  You can also view and edit properties of arrays the same way.

 

Peace.

 



---------- Forwarded message ---------
From: Matt Slay <matt...@jordanmachine.com>
Date: Sat, Nov 18, 2017 at 6:32 AM
Subject: *NEW* Object Explorer...
To: Jim Nelson <jimrn...@gmail.com>


I've always used Tamar's Object Inspector in my deployed app in a hidden way, in that on from any CRUD forms, I can right click on the icon in the upper left of the form, and I can use the Object Inspector to see everything on the MainBO, which, is a *lot* of automatically populated stuff from my wwBusinessPro trickery.  I find this helpful to dig around on some of the data that is probably on the data objects but may not be display on the forms, and sometimes I need that data for various reasons.

Anyway, I have this one BO that Object Inspector chokes on when it parses the object to fetch all the data to show on the form. I racked by brain and screwed around with my BO for a couple of hours thinking it was some junk I had in my object hierarchy. I never could figure it out. It caused "a too many nested do loops " error on my BO for some reason that did not happen at run time, and I could not cause the same error on that BO from the command window, no matter what I tried to call or invoke.

Then on a whim I used an old tool I got from Mike Feltman's 2008 SWFox session on Collections. (The tool works on arrays and nested objects too, so it's not just about Collections, so the name Collection Explorer was ill-chosen if you ask me). That tool parsed the BO just fine and never triggered the same error on my BO methods as it parsed the BO. Go figure!

So, I am relieved about that and I'm switching away from Object Inspector to this new tool.

One cool thing about his tool is that it is only one single SCX form.  No classlibs at all, no .APP file, no dependencies on anything but native FoxPro controls. The original form had 3 controls and that's it.  I added a 4th control as a label in the bottom right hand corner. It it very lightweight, and only have about 8 methods to do everything.  Very easy to follow code, very clean and simple.

I've also added some other functionality, like if one of the property values in the grid is a cursor name, you can double-click on it to browse that cursor. Tthe tools runs against the current data session that it was called from, so it can see and browse those cursors with double-click. (All of my child BO's store the cursor name in a property, and there are other cursor names references in other properties, so it's handy to fire off a Browse from any cursor name.)

I also renamed this tool to Object Explorer (not to be confused with Tamar's Object Inspector).

It is now "Object Explorer 2.1.0" so far. I may release it on VFPx Githib, or at least put it up on my own GitHub and shoot out a tweet and a few emails about it to get some feedback.

So, I've dumped Object Inspector for this new tool.


    Do Form Object_Explorer with Thisform.oMainObject, "Job", "4033X"



--
Matt Slay, President
Jordan Machine Co.
355 Clow Lane
PO Box 170339
Birmingham, AL 35217
Ph: 205-849-5050
Fx: 205-849-5075
matt...@jordanmachine.com
http://www.JordanMachine.com





--
Jim Nelson

(805) 498-9195 (preferred)
(720) 837-3536 (cell)

Jim Nelson

unread,
Feb 2, 2022, 6:37:55 PM2/2/22
to FoxPr...@googlegroups.com
Oops!  That's not gonna do anybody any good without the attachments!

Sorry about that!

image.png

--
You received this message because you are subscribed to the Google Groups "Thor, the Tool Manager for FoxPro" group.
To unsubscribe from this group and stop receiving emails from it, send an email to FoxProThor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/FoxProThor/CAEAD%3DvO6Ms92%3D67NYz3OzTQnn0rpOFsk3YdZZkBC-n%2BQ7Jk_JQ%40mail.gmail.com.
explorer.sc2.txt
explorer.vc2.txt
explorer_Modal.sc2.txt

Rick Schummer

unread,
Feb 3, 2022, 12:32:30 AM2/3/22
to FoxPr...@googlegroups.com

Thanks Jim (and Matt). A nice surprise.

 

Rick Schummer

 

From: foxpr...@googlegroups.com <foxpr...@googlegroups.com> On Behalf Of Jim Nelson
Sent: February 2, 2022 06:36 PM
To: FoxPr...@googlegroups.com
Subject: Re: {Thor} One last tool from me and Matt Slay

 

Oops!  That's not gonna do anybody any good without the attachments!

 

Sorry about that!

 

 

On Wed, Feb 2, 2022 at 4:29 PM Jim Nelson <jimrn...@gmail.com> wrote:

Hi everybody --

 

In honor of my very good friend, the late Matt Slay, I want to share the last tool we collaborated on.

 

The tool is not actually our concept at all, as it derives from two other tools that have been in the community for a long time (see the original message, below, that got us started.)

 

 

All that we did was to customize an existing tool, add some features, eliminate some bugs and provide some customization.  (Actually, not much to get excited about.)

image003.png
image004.png

Russell Campbell

unread,
Feb 3, 2022, 4:04:00 AM2/3/22
to FoxPr...@googlegroups.com
WTF! How did I miss that he passed? What are the details here?

Russell
Sent from my iPhone

On Feb 3, 2022, at 12:32 AM, Rick Schummer <rsch...@gmail.com> wrote:



Russell Campbell

unread,
Feb 3, 2022, 4:08:50 AM2/3/22
to FoxPr...@googlegroups.com
Sorry, I was shocked and just sent that off. I Googled it and found out. So sorry to belatedly hear this!


Russell
Sent from my iPhone

On Feb 3, 2022, at 4:04 AM, Russell Campbell <russca...@interthink.com> wrote:

WTF! How did I miss that he passed? What are the details here?

Tore Bleken

unread,
Feb 3, 2022, 4:08:59 AM2/3/22
to FoxPr...@googlegroups.com

Hi Russell,

 

I agree, the announcement came as a shock to me also. This is a quote from Rick Schummer's email dated October 12th last year:

 

It is with great sadness and a heavy heart to share the news that Matt Slay has passed away from COVID-19 earlier today. You may recognize Matt for his many contributions to the Fox Community on VFPX with the next generation of GoFish, DynamicForms, assisting Jim Nelson and Doug Hennig with the development and testing of Thor, inspiring the Go To Definition feature in Thor, and the VFP language template for VS Code, just to name a few of his contributions. Matt also inspired other developers to create things for our community when he was not tackling them himself. He was very good at twisting arms of fellow Visual FoxPro developers to get other things contributed.

 

Matt leaves behind his wife Sharon and two teenage sons. This is an absolute gut punch and is a terrible way to extinguish a shining star in our community.

 

Tore Bleken

Russell Campbell

unread,
Feb 3, 2022, 4:22:51 AM2/3/22
to FoxPr...@googlegroups.com
Yeah, that’s what I found. Thanks. It’s not just the flu!


Russell
Sent from my iPhone

On Feb 3, 2022, at 4:09 AM, Tore Bleken <to...@bleken.no> wrote:



Bhavbhuti Nathwani

unread,
Feb 3, 2022, 4:41:47 AM2/3/22
to FoxPr...@googlegroups.com

Thanks Jim.  Sorry to sound dense but how do I make them binary file pairs again?  I tried FoxBin2Prg from the Thor Applications menu, last menu option for FoxBin2Prg, but it gives me the following error when I clicked on one of the txt file(it was looking for a project file).  Never used this before thus.  Please advise

Kind regards

Bhavbhuti

Jim Nelson

unread,
Feb 3, 2022, 5:05:02 AM2/3/22
to FoxPr...@googlegroups.com
Bhavbhuti —

Remove the txt extensions so that you have normal looking extensions that FoxBin2Prg will recognize.  

I added those txt extensions so that the files could be added as attachments.  

My apologies for lack of instructions.  



Sent from my iPhone

On Feb 3, 2022, at 1:41 AM, Bhavbhuti Nathwani <bhav...@gmail.com> wrote:



Bhavbhuti Nathwani

unread,
Feb 3, 2022, 5:09:29 AM2/3/22
to FoxPr...@googlegroups.com

Thanks Jim, but no joy.  Same message, minus the .txt  I am sure I am missing something that is obvious

Kind regards

Bhavbhuti

Zdeněk Krejčí

unread,
Feb 3, 2022, 6:28:28 AM2/3/22
to FoxPr...@googlegroups.com

Thank Jim.

Please can You share the file common.h?

 

#INCLUDE "common.h"

 

Zdeněk Krejčí

 

From: foxpr...@googlegroups.com <foxpr...@googlegroups.com> On Behalf Of Jim Nelson
Sent: Thursday, February 3, 2022 12:36 AM
To: FoxPr...@googlegroups.com
Subject: Re: {Thor} One last tool from me and Matt Slay

 

Oops!  That's not gonna do anybody any good without the attachments!

 

Sorry about that!

 

 

On Wed, Feb 2, 2022 at 4:29 PM Jim Nelson <jimrn...@gmail.com> wrote:

Hi everybody --

 

In honor of my very good friend, the late Matt Slay, I want to share the last tool we collaborated on.

 

The tool is not actually our concept at all, as it derives from two other tools that have been in the community for a long time (see the original message, below, that got us started.)

 

 

All that we did was to customize an existing tool, add some features, eliminate some bugs and provide some customization.  (Actually, not much to get excited about.)

image002.png
image003.png

Jim Nelson

unread,
Feb 3, 2022, 8:12:40 AM2/3/22
to FoxPr...@googlegroups.com
Sorry, folks, a poorly planned rollout of this little tool.

I see now that I did not pay attention to removing a few things that referred specifically to the structure on my work computer.

Hoping to get back with corrections (and more directions) soon.

Reply all
Reply to author
Forward
0 new messages