Index
2026-11-25 15:31 – Kurt Wendt : Claude & FoxPro Code Injection
2026-11-26 12:32 – Paul Hill : Re: Claude & FoxPro Code Injection
2026-11-30 15:57 – Richard Kaye : RE: Claude & FoxPro Code Injection
Back to top
Claude & FoxPro Code Injection

Author: Kurt Wendt

Posted: 2026-11-25 15:31:26   Link

Hey there folks,

It's been a bit quiet here lately - so, it's time I stirred up some Trouble...

OK - not exactly trouble...

So, the deal is - starting about 9-10 months ago, I started using the Claude Desktop App - instead of accessing Claude via the webpages. This made a HUGE Difference in what I was able to accomplish. And, since then - most of my time has been spent on the C# end of code - mostly in regard to converting FoxPro screens to C#.

The big game changer in using the Desktop App - is that Claude can now Directly manipulate code - to the extent that I can now literally do whole screen conversions without actually touching the C# code. But, I DO Extensive manipulation of the generated screen XAML code - to fine tune the screen layout and design. As such, I am truly doing the Vibe Coding paradigm to software development.

Now, near the beginning when I was using the desktop App - I tried something - which basically failed. That is - I was trying to have Claude directly manipulate FoxPro screen code. Since most ALL of our FoxPro ERP system is based upon Screens - with code behind them. Yes - we have some various PRG files - but, most are the typical SCX/SCT files.

What I tried to have Claude do was directly manipulate the screen code files. But, sadly - when he would attempt it - he would end up essentially corrupting the files - so the screen could no longer be opened in the FoxPro Screen designer.

So, then I started thinking of a completely different attack of the problem. That is - since Screen files (as well as Report forms) are essentially DBF file structures - I could get Claude to write a FoxPro program - which would Open up the screen like a DBF - and basically make direct updates to the various memo fields - then he could help me accelerate making changes to FoxPro screens. And, I DID get this to work. I was Even able to have him insert new controls onto a screen. For me - this was a pretty exciting breakthru. And, yes - he would write the FoxPro programs - and I essentially run them. Of course, after I would run one of these programs - I would then either open the screen in the Designer to confirm changes - or, compile the Project and run it - to test the code changes!

For anyone really interested in seeing some code of what Claude created - and I ran it to modify a screen, one example program is below!

Anyway folks - have a Happy Thanksgiving! Gobble Gobble Gobble...

-Kurt

lcForm = "c:\pako\vfp\production\forms\mfg_status40"

COPY FILE (lcForm + ".scx") TO (lcForm + "_backup.scx")

COPY FILE (lcForm + ".sct") TO (lcForm + "_backup.sct")

**************

lcForm = "U:\MPP Scrn Report\mfg_status40"

COPY FILE (lcForm + ".scx") TO (lcForm + "_backup.scx")

COPY FILE (lcForm + ".sct") TO (lcForm + "_backup.sct")

TEXT TO lcOld1 NOSHOW

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

ORDER BY ol_end_date,ol_order_num,ol_rel_number

ENDTEXT

TEXT TO lcNew1 NOSHOW

* Frank B. request - Overview Rpt In Process order to match MPP In Process grid (Last Op DESC) - KHW & Claude - 11/2/26

*!* SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

*!* ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

*!* IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

*!* FROM Orelease ;

*!* INTO CURSOR xxxlstInProcess ;

*!* WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

*!* AND ol_rel_stat='O' AND ol_priority <> 999999 ;

*!* AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

*!* ORDER BY ol_end_date,ol_order_num,ol_rel_number

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom, ol_op_lastcom AS raw_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

ORDER BY raw_lastcom DESC

* EndChg - KHW & Claude - 11/2/26

ENDTEXT

TEXT TO lcOld2 NOSHOW

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND NOT DELETED() ;

ORDER BY ol_end_date,ol_order_num,ol_rel_number

ENDTEXT

TEXT TO lcNew2 NOSHOW

* Frank B. request - Overview Rpt In Process order to match MPP In Process grid (Last Op DESC) - KHW & Claude - 11/2/26

*!* SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

*!* ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

*!* IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

*!* FROM Orelease ;

*!* INTO CURSOR xxxlstInProcess ;

*!* WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

*!* AND ol_rel_stat='O' AND ol_priority <> 999999 ;

*!* AND NOT DELETED() ;

*!* ORDER BY ol_end_date,ol_order_num,ol_rel_number

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom, ol_op_lastcom AS raw_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND NOT DELETED() ;

ORDER BY raw_lastcom DESC

* EndChg - KHW & Claude - 11/2/26

ENDTEXT

USE (lcForm + ".scx") EXCLUSIVE ALIAS scxedit

LOCATE FOR UPPER(ALLTRIM(objname)) == "CMDOVERVIEWRPT" AND UPPER(ALLTRIM(parent)) == "MFG_STATUS40"

IF NOT FOUND()

USE

WAIT WINDOW "cmdOverviewRpt not found - no changes made"

RETURN

ENDIF

lnHit1 = OCCURS(lcOld1, scxedit.methods)

lnHit2 = OCCURS(lcOld2, scxedit.methods)

IF lnHit1 <> 1 OR lnHit2 <> 1

USE

WAIT WINDOW "Old code matches: Change 1 = " + TRANSFORM(lnHit1) + ", Change 2 = " + TRANSFORM(lnHit2) + " (need 1 each) - no changes made"

RETURN

ENDIF

REPLACE methods WITH STRTRAN(STRTRAN(methods, lcOld1, lcNew1), lcOld2, lcNew2)

USE

COMPILE FORM (lcForm + ".scx")

WAIT WINDOW "Overview Rpt order changed and form recompiled"

RETURN

©2026 Kurt Wendt
Back to top
Re: Claude & FoxPro Code Injection

Author: Paul Hill

Posted: 2026-11-26 12:32:44   Link

Hi Kurt,

I'm a big Commodore Amiga fan. I maintain 2 applications to control the

BlueSCSI hard drive emulator.

I run the latest OS 3.2. Problem is, it looks crap under the last

Commodore OS 3.1. I took a screenshot of both and asked Claude to fix

it. Done.

I recommend you run Claude from the command line. Either Linux Bash or a

Windows Powershell. It's much more interactive and can use tools you

have installed. It runs unit tests while making changes.

To learn Claude I ported a bunch of games to the Dragon32 (my first

computer, a British Coco clone). I understand this platform well and

it's simple so I'm not burning tokens.

It's impressive. I have a very playable Super Mario Bros clone

(featuring a frog), Bubble Bobble and Castle Wolfenstein. These would

have been AAA games in 1982!

--

Paul

On 25/11/2026 21:31, Kurt Wendt wrote:

> Hey there folks,

>

> It's been a bit quiet here lately - so, it's time I stirred up some Trouble...

>

> OK - not exactly trouble...

>

> So, the deal is - starting about 9-10 months ago, I started using the Claude Desktop App - instead of accessing Claude via the webpages. This made a HUGE Difference in what I was able to accomplish. And, since then - most of my time has been spent on the C# end of code - mostly in regard to converting FoxPro screens to C#.

>

> The big game changer in using the Desktop App - is that Claude can now Directly manipulate code - to the extent that I can now literally do whole screen conversions without actually touching the C# code. But, I DO Extensive manipulation of the generated screen XAML code - to fine tune the screen layout and design. As such, I am truly doing the Vibe Coding paradigm to software development.

>

> Now, near the beginning when I was using the desktop App - I tried something - which basically failed. That is - I was trying to have Claude directly manipulate FoxPro screen code. Since most ALL of our FoxPro ERP system is based upon Screens - with code behind them. Yes - we have some various PRG files - but, most are the typical SCX/SCT files.

>

> What I tried to have Claude do was directly manipulate the screen code files. But, sadly - when he would attempt it - he would end up essentially corrupting the files - so the screen could no longer be opened in the FoxPro Screen designer.

>

> So, then I started thinking of a completely different attack of the problem. That is - since Screen files (as well as Report forms) are essentially DBF file structures - I could get Claude to write a FoxPro program - which would Open up the screen like a DBF - and basically make direct updates to the various memo fields - then he could help me accelerate making changes to FoxPro screens. And, I DID get this to work. I was Even able to have him insert new controls onto a screen. For me - this was a pretty exciting breakthru. And, yes - he would write the FoxPro programs - and I essentially run them. Of course, after I would run one of these programs - I would then either open the screen in the Designer to confirm changes - or, compile the Project and run it - to test the code changes!

>

> For anyone really interested in seeing some code of what Claude created - and I ran it to modify a screen, one example program is below!

>

> Anyway folks - have a Happy Thanksgiving! Gobble Gobble Gobble...

> -Kurt

>

>

> lcForm = "c:\pako\vfp\production\forms\mfg_status40"

>

> COPY FILE (lcForm + ".scx") TO (lcForm + "_backup.scx")

> COPY FILE (lcForm + ".sct") TO (lcForm + "_backup.sct")

>

> **************

>

> lcForm = "U:\MPP Scrn Report\mfg_status40"

>

> COPY FILE (lcForm + ".scx") TO (lcForm + "_backup.scx")

> COPY FILE (lcForm + ".sct") TO (lcForm + "_backup.sct")

>

> TEXT TO lcOld1 NOSHOW

> SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

> ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

> IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

> FROM Orelease ;

> INTO CURSOR xxxlstInProcess ;

> WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

> AND ol_rel_stat='O' AND ol_priority <> 999999 ;

> AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

> ORDER BY ol_end_date,ol_order_num,ol_rel_number

> ENDTEXT

>

> TEXT TO lcNew1 NOSHOW

> * Frank B. request - Overview Rpt In Process order to match MPP In Process grid (Last Op DESC) - KHW & Claude - 11/2/26

> *!* SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

> *!* ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

> *!* IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

> *!* FROM Orelease ;

> *!* INTO CURSOR xxxlstInProcess ;

> *!* WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

> *!* AND ol_rel_stat='O' AND ol_priority <> 999999 ;

> *!* AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

> *!* ORDER BY ol_end_date,ol_order_num,ol_rel_number

> SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

> ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

> IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom, ol_op_lastcom AS raw_lastcom ;

> FROM Orelease ;

> INTO CURSOR xxxlstInProcess ;

> WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

> AND ol_rel_stat='O' AND ol_priority <> 999999 ;

> AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

> ORDER BY raw_lastcom DESC

> * EndChg - KHW & Claude - 11/2/26

> ENDTEXT

>

> TEXT TO lcOld2 NOSHOW

> SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

> ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

> IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

> FROM Orelease ;

> INTO CURSOR xxxlstInProcess ;

> WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

> AND ol_rel_stat='O' AND ol_priority <> 999999 ;

> AND NOT DELETED() ;

> ORDER BY ol_end_date,ol_order_num,ol_rel_number

> ENDTEXT

>

> TEXT TO lcNew2 NOSHOW

> * Frank B. request - Overview Rpt In Process order to match MPP In Process grid (Last Op DESC) - KHW & Claude - 11/2/26

> *!* SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

> *!* ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

> *!* IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

> *!* FROM Orelease ;

> *!* INTO CURSOR xxxlstInProcess ;

> *!* WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

> *!* AND ol_rel_stat='O' AND ol_priority <> 999999 ;

> *!* AND NOT DELETED() ;

> *!* ORDER BY ol_end_date,ol_order_num,ol_rel_number

> SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

> ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

> IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom, ol_op_lastcom AS raw_lastcom ;

> FROM Orelease ;

> INTO CURSOR xxxlstInProcess ;

> WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

> AND ol_rel_stat='O' AND ol_priority <> 999999 ;

> AND NOT DELETED() ;

> ORDER BY raw_lastcom DESC

> * EndChg - KHW & Claude - 11/2/26

> ENDTEXT

>

> USE (lcForm + ".scx") EXCLUSIVE ALIAS scxedit

> LOCATE FOR UPPER(ALLTRIM(objname)) == "CMDOVERVIEWRPT" AND UPPER(ALLTRIM(parent)) == "MFG_STATUS40"

> IF NOT FOUND()

> USE

> WAIT WINDOW "cmdOverviewRpt not found - no changes made"

> RETURN

> ENDIF

>

> lnHit1 = OCCURS(lcOld1, scxedit.methods)

> lnHit2 = OCCURS(lcOld2, scxedit.methods)

> IF lnHit1 <> 1 OR lnHit2 <> 1

> USE

> WAIT WINDOW "Old code matches: Change 1 = " + TRANSFORM(lnHit1) + ", Change 2 = " + TRANSFORM(lnHit2) + " (need 1 each) - no changes made"

> RETURN

> ENDIF

>

> REPLACE methods WITH STRTRAN(STRTRAN(methods, lcOld1, lcNew1), lcOld2, lcNew2)

> USE

>

> COMPILE FORM (lcForm + ".scx")

> WAIT WINDOW "Overview Rpt order changed and form recompiled"

> RETURN

>

>

> _______________________________________________

> Post Messages to: profox@leafe.com

> Subscription Maintenance: https://lists.leafe.com/postorius/lists/profox.leafe.com/

> To unsubscribe send an email to profox-leave@leafe.com

> OT-free version of this list: https://lists.leafe.com/postorius/lists/profoxtech.leafe.com/

> Searchable Archive: https://leafe.com/archives

> This message: https://leafe.com/archives/byMID/

> <BY5PR13MB3843754B26F3D401B904D19DC3732@BY5PR13MB3843.namprd13.prod.outlook.com

> ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious

--

Paul

©2026 Paul Hill
Back to top
RE: Claude & FoxPro Code Injection

Author: Richard Kaye

Posted: 2026-11-30 15:57:46   Link

FoxBin2PRG would have handled the 2-way conversion between binary and text. But I'm sure Claude had a fine time reinventing that wheel. 😊

--

rk

-----Original Message-----

From: Kurt Wendt <kwendt@pakoinc.com>

Sent: Wednesday, November 25, 2026 4:31 PM

To: ProFox Email List <profox@leafe.com> <profox@leafe.com>

Subject: Claude & FoxPro Code Injection

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hey there folks,

It's been a bit quiet here lately - so, it's time I stirred up some Trouble...

OK - not exactly trouble...

So, the deal is - starting about 9-10 months ago, I started using the Claude Desktop App - instead of accessing Claude via the webpages. This made a HUGE Difference in what I was able to accomplish. And, since then - most of my time has been spent on the C# end of code - mostly in regard to converting FoxPro screens to C#.

The big game changer in using the Desktop App - is that Claude can now Directly manipulate code - to the extent that I can now literally do whole screen conversions without actually touching the C# code. But, I DO Extensive manipulation of the generated screen XAML code - to fine tune the screen layout and design. As such, I am truly doing the Vibe Coding paradigm to software development.

Now, near the beginning when I was using the desktop App - I tried something - which basically failed. That is - I was trying to have Claude directly manipulate FoxPro screen code. Since most ALL of our FoxPro ERP system is based upon Screens - with code behind them. Yes - we have some various PRG files - but, most are the typical SCX/SCT files.

What I tried to have Claude do was directly manipulate the screen code files. But, sadly - when he would attempt it - he would end up essentially corrupting the files - so the screen could no longer be opened in the FoxPro Screen designer.

So, then I started thinking of a completely different attack of the problem. That is - since Screen files (as well as Report forms) are essentially DBF file structures - I could get Claude to write a FoxPro program - which would Open up the screen like a DBF - and basically make direct updates to the various memo fields - then he could help me accelerate making changes to FoxPro screens. And, I DID get this to work. I was Even able to have him insert new controls onto a screen. For me - this was a pretty exciting breakthru. And, yes - he would write the FoxPro programs - and I essentially run them. Of course, after I would run one of these programs - I would then either open the screen in the Designer to confirm changes - or, compile the Project and run it - to test the code changes!

For anyone really interested in seeing some code of what Claude created - and I ran it to modify a screen, one example program is below!

Anyway folks - have a Happy Thanksgiving! Gobble Gobble Gobble...

-Kurt

lcForm = "c:\pako\vfp\production\forms\mfg_status40"

COPY FILE (lcForm + ".scx") TO (lcForm + "_backup.scx") COPY FILE (lcForm + ".sct") TO (lcForm + "_backup.sct")

**************

lcForm = "U:\MPP Scrn Report\mfg_status40"

COPY FILE (lcForm + ".scx") TO (lcForm + "_backup.scx") COPY FILE (lcForm + ".sct") TO (lcForm + "_backup.sct")

TEXT TO lcOld1 NOSHOW

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

ORDER BY ol_end_date,ol_order_num,ol_rel_number

ENDTEXT

TEXT TO lcNew1 NOSHOW

* Frank B. request - Overview Rpt In Process order to match MPP In Process grid (Last Op DESC) - KHW & Claude - 11/2/26

*!* SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

*!* ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

*!* IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

*!* FROM Orelease ;

*!* INTO CURSOR xxxlstInProcess ;

*!* WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

*!* AND ol_rel_stat='O' AND ol_priority <> 999999 ;

*!* AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

*!* ORDER BY ol_end_date,ol_order_num,ol_rel_number

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom, ol_op_lastcom AS raw_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno) ;

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND SUBSTR(ol_order_num,11,1)<>'R' AND NOT DELETED() ;

ORDER BY raw_lastcom DESC

* EndChg - KHW & Claude - 11/2/26 ENDTEXT

TEXT TO lcOld2 NOSHOW

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND NOT DELETED() ;

ORDER BY ol_end_date,ol_order_num,ol_rel_number

ENDTEXT

TEXT TO lcNew2 NOSHOW

* Frank B. request - Overview Rpt In Process order to match MPP In Process grid (Last Op DESC) - KHW & Claude - 11/2/26

*!* SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

*!* ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

*!* IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom ;

*!* FROM Orelease ;

*!* INTO CURSOR xxxlstInProcess ;

*!* WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

*!* AND ol_rel_stat='O' AND ol_priority <> 999999 ;

*!* AND NOT DELETED() ;

*!* ORDER BY ol_end_date,ol_order_num,ol_rel_number

SELECT ol_order_num, ol_rel_number, ol_priority, ol_rel_date, ol_end_date, ;

ol_rel_qty as ol_quantity,STR(ol_op_complete,2)+ ' /'+ STR(ol_op_count,2) AS comp_ops, ;

IIF(ol_op_complete<>0,ol_op_lastcom,0) as ol_op_lastcom, ol_op_lastcom AS raw_lastcom ;

FROM Orelease ;

INTO CURSOR xxxlstInProcess ;

WHERE ol_part_num=mzzpartno AND ALLTRIM(ol_part_num)==ALLTRIM(mzzpartno);

AND ol_rel_stat='O' AND ol_priority <> 999999 ;

AND NOT DELETED() ;

ORDER BY raw_lastcom DESC

* EndChg - KHW & Claude - 11/2/26 ENDTEXT

USE (lcForm + ".scx") EXCLUSIVE ALIAS scxedit LOCATE FOR UPPER(ALLTRIM(objname)) == "CMDOVERVIEWRPT" AND UPPER(ALLTRIM(parent)) == "MFG_STATUS40"

IF NOT FOUND()

USE

WAIT WINDOW "cmdOverviewRpt not found - no changes made"

RETURN

ENDIF

lnHit1 = OCCURS(lcOld1, scxedit.methods)

lnHit2 = OCCURS(lcOld2, scxedit.methods) IF lnHit1 <> 1 OR lnHit2 <> 1

USE

WAIT WINDOW "Old code matches: Change 1 = " + TRANSFORM(lnHit1) + ", Change 2 = " + TRANSFORM(lnHit2) + " (need 1 each) - no changes made"

RETURN

ENDIF

REPLACE methods WITH STRTRAN(STRTRAN(methods, lcOld1, lcNew1), lcOld2, lcNew2) USE

COMPILE FORM (lcForm + ".scx")

WAIT WINDOW "Overview Rpt order changed and form recompiled"

RETURN

_______________________________________________

Post Messages to: profoxtech@leafe.com

Subscription Maintenance: https://lists.leafe.com/postorius/lists/profoxtech.leafe.com/

To unsubscribe send an email to profoxtech-leave@leafe.com Full version of this list, including off-topic messages: https://lists.leafe.com/postorius/lists/profox.leafe.com/

Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/ <BY5PR13MB3843754B26F3D401B904D19DC3732@BY5PR13MB3843.namprd13.prod.outlook.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious

©2026 Richard Kaye