Skip to Content

How to read all the variables along with there types from a report program?

Hi Experts,

I have a required to write a program to check the naming convention of the variables used in the report provided in the selection screen.

For that purpose, i require to read all the variables of the report that has been provided in the selection screen along with their type (eg: constant, variable, structure).

Can anyone please suggest, how can i achieve this?

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Oct 29, 2015 at 06:30 AM

    If you read this blog Hungarian beginner's course - a polemic scripture against Hungarian Notation you might realise that in the opinion of many, enforcing naming standards on variables is merely enforcing bad programming practice.

    Add comment
    10|10000 characters needed characters exceeded

    • Others have pointed out the best way to achieve your task.

      Of course, you must always follow the conventions that are laid down - however, you are always free to challenge those conventions if, in your professional opinion, they are unnecessary, or could even be harmful. I did this once and was then tasked with rewriting the conventions! That raised my profile within the organisation, which was good for my career.

      Why not gently point the author of the document to that blog - just as food for thought.

      My personal conviction is that no matter what your position within an organisation is, you should always strive for improvement.