Focal Point
[SHARING] Code Validator (Things to check for)
February 15, 2018, 06:00 AM
Wep5622[SHARING] Code Validator (Things to check for)
Did somebody already suggest to detect code where &-variables are being used before they're initialized?
The last couple of days I've been pulling my hair out (not literally) over autoprompt prompting for variables that did not appear to be actually missing, which is frequently caused by variables initialized
after their first use...
Currently, I'm not aware of any tools within the product that can help find those.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
February 18, 2018, 03:22 PM
Wazquote:
&VAR..
I haven't see that, but as we have varied developers here, its always a possibility.
The difficulty is to find it.
I used to use &VAR...ext when parameterising a filename.
It will probably go into the issues category for review, not fixing.
Waz...Prod: | WebFOCUS 7.6.10/8.1.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |
February 18, 2018, 03:24 PM
Wazquote:
&-variables are being used before they're initialized
Great idea.
Bit difficult in our environment with common code and -INCLUDEs
Waz...Prod: | WebFOCUS 7.6.10/8.1.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |
February 18, 2018, 03:26 PM
Wazquote:
created a .NET Core 2.0 console app written in C# I called SearchReplace
Nice,
I have been thinking of changing this utility to have it outside of WF, probably in Python, perhaps when I have spare time.
Waz...Prod: | WebFOCUS 7.6.10/8.1.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |
February 21, 2018, 11:30 AM
CoolGuyquote:
Originally posted by Waz:
quote:
created a .NET Core 2.0 console app written in C# I called SearchReplace
Nice,
I have been thinking of changing this utility to have it outside of WF, probably in Python, perhaps when I have spare time.
Nice! Good luck man!
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
February 21, 2018, 12:23 PM
Francis MarianiShould I say it?
"If you use the GIU, you will have the most perfect report".
And
"I thought code was dead".
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 21, 2018, 03:25 PM
Wazquote:
"If you use the GIU, you will have the most perfect report".
If you use Code, you get a more capable perfect report.
quote:
"I thought code was dead".
In my house Code is eternal......
Waz...Prod: | WebFOCUS 7.6.10/8.1.04 | Upgrade: | WebFOCUS 8.2.07 | OS: | Linux |
Outputs: | HTML, PDF, Excel, PPT |
In Focus since 1984 |
Pity the lost knowledge of an old programmer! |
February 21, 2018, 04:00 PM
Francis Marianiquote:
quote:
"I thought code was dead".
In my house Code is eternal......
I should have been clearer:
"In the Information Builders Universe, I thought code was dead".
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 21, 2018, 04:13 PM
CoolGuyquote:
Originally posted by Francis Mariani:
I should have been clearer:
"In the Information Builders Universe, I thought code was dead".
Francis,
It lives as long as us developers are willing to continue on in IBI products due to the existence of -HTMLFORM BEGIN/END blocks... LOL ...etc.
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.