Comments
Matt McLarty wrote: For more info... Follow me on Twitter See our website
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


PowerBuilder 12.1 .NET IDE Productivity
Hiding those pesky migration warning messages

I recently migrated a Classic MDI application to .NET.  One of the nice features that helped me prepare my code for .NET deployment is the Unsupported Feature list that appears in a selectable view in the Output window.   That view gets populated following a build if the app has unsupported features.  The unsupported list is a very useful guide to locating and navigating to lines of code and property references that need your special attention.  Here's what it looks like:

Output View

While working my way through the code I noted that some unsupported features are innocuous.  The PowerScript precompiler doesn't generate them into the C# code.  Their presence has no impact on the resulting application.  As a busy developer, with deadlines to meet, I'm tempted to not remove them from the code until I have some spare time. But it I don't the pesky output window keeps reminding me that they're there.  I don't want to be annoyed all the time by having them show during each build.

Thankfully, the product engineers added an option checkbox to the project object in version 12.1 that allows you to suppress unsupported feature listing output following a build.  Checking the option suppresses ALL unsupported feature output, unchecking it (the default) includes all unsupported features in the output view.  Here's how it looks:

Project Painter

The result:

What was a little confusing to me was the use of the "Suppress the following warnings" edit.  My first impression was that I could use it to list just those unsupported features that I didn't care about and let the rest show.  However, I wasn't sure what to type into the edit to get the desired effect.  First I tried clipping text from the output window and pasting it in.   Then I tried entering just object.line numbers.  Both attempts had no effect on the output.  In fact when I saved the project, embedded spaces and periods were converted to commas.  Here's how that attempt looked

Wrong Attempt

Finally, my former colleague and PowerBuilder .NET IDE software engineer, Evan Rothfield, showed me the error in my thinking.  Here's what he said, "The checkbox and edit have nothing to do with each other.  The checkbox controls the output of "unsupported feature" warnings, which don't have an identifier.  If you check the checkbox, you won't get any of those.   The edit is for warnings that do have an identifier.  For example, if you have a FOR loop like this:

uint i
for i = -1 to 4
i = i
next

You will get this warning:

C0110: Mixing signed and unsigned values in for statement.

If you put C0110 in the edit, you can suppress that warning.  We treat unsupported feature warnings as "distinct" from other warnings since they go in a separate "pane" of the output window. Unsupported feature warnings don't have an identifier so they are treated separately"  Here's how the output looks with the warning turned off:

In summary, you can control which warning message the compiler will display in the output window to suit your tastes as you work through migrating your application

Happy PowerBuilding

About Yakov Werde
Yakov Werde, a 25 year IT industry veteran, is a member of TeamSybase and the newly formed Sybase Customer Evangelist Team. Yakov is a recognized author, speaker and trainer who has been designing and delivering PowerBuilder, .NET, EaServer, Web App Development, and Java training for over 14 years to corporate, military and government developers. Prior to discovering his aptitude as an educator, Yakov worked as an architect, project manager and application coder in the trenches of application software development. Yakov holds a Masters in Education with a specialty in instructional design for online learning from Capella University and a BS in math and computer science from Florida International University. Yakov, managing partner of eLearnIT LLC (www.elearnitonline.com), authors and delivers workshops and web based eLearning tutorials to guide professional developers toward PowerBuilder Classic and .NET mastery. Follow Yakov on Twitter as @eLearnPB

Enterprise Open Source Magazine Latest Stories . . .
Cloud computing is creating the new Wall Street boom, according to NIA. The only industry that is as bright as cloud computing on Wall Street is social networking, NIA said in a recent report. 2012 will be known as the year cloud computing became widely adopted worldwide. Cloud comput...
The impact of Big Data is extremely broad for business, information management and technology. Being able to analyze your growing mountain of data can give you a distinct competitive advantage, but Big Data can be more than traditional tools can handle. In his session at the 10th Int...
In this CTO Power Panel at the 10th International Cloud Expo, moderated by Cloud Expo Conference Chair Jeremy Geelan, industry-leading CTOs & VPs of Technology will discuss such topics as: Which do you think is the most important cloud computing standard still to tackle? Who should...
China’s antitrust regulators gave Google’s $12.5 billion acquisition of Motorola Mobility the nod Saturday provided Google’s Android operating system remains open and free-of-charge for the next five years. The “free” stipulation apparently doesn’t apply to applications or services...
Citrix has acquired Virtual Computer, a little Massachusetts outfit with enterprise-scale management solutions for client-side virtualization. It means to combine the acquisition’s NxTop widgetry with its XenClient hypervisor to create a new Citrix XenClient Enterprise edition that c...
In the wake of the Facebook IPO fiasco, Nasdaq CEO Robert Greifeld beat his breast and told the Wall Street Journal along with other press Sunday that Nasdaq’s “acknowledged design problems” bungled the social network’s landmark lPO Friday. Reporters were told on a conference call ...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE