I mean debug session, not code itself.
During debug session, try to go through loops and watch at VV. Info in VV presented by raw numbers, I can't determine what status of object I have at this moment of time, until rummage in pbi-file with headers.
And If all constants were created with Enumetation function? What will you do?
Show constant as constant name in Variable Viewer
-
- Enthusiast
- Posts: 200
- Joined: Wed Feb 01, 2012 5:30 pm
- Location: Russian Federation
Re: Show constant as constant name in Variable Viewer
Former user of pirated PB.
Now registered user :].
Now registered user :].
Re: Show constant as constant name in Variable Viewer
I think it would be enough (preferred) to have a new tab in the Variable Viewer that (along with variables, arrays, lists, maps) listed all constants.
...and that list could be sorted by order of definition, alphabetically OR by value.
...and that list could be sorted by order of definition, alphabetically OR by value.
Re: Show constant as constant name in Variable Viewer
The solution is in your Title:
Show constant <xx xxxxxxxx xxxx> in Variable Viewer.
Macro created constants are only available with explicit Debug commands or assignments to variable.
It would help to list all constants/enum's in the Variable Viewer.

Show constant <xx xxxxxxxx xxxx> in Variable Viewer.
Macro created constants are only available with explicit Debug commands or assignments to variable.
It would help to list all constants/enum's in the Variable Viewer.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Show constant as constant name in Variable Viewer
Korolev Michael wrote:And If all constants were created with Enumetation function? What will you do?
Code: Select all
Enumeration Enum1
#Failure
#Success
EndEnumeration
;
; var is of type "Enumeration Enum1"
; and only values of Enum1 can be assigned to it
;
var.Enum1 = #Success
Debug var ; outputs "#Success"
-
- Enthusiast
- Posts: 200
- Joined: Wed Feb 01, 2012 5:30 pm
- Location: Russian Federation
Re: Show constant as constant name in Variable Viewer
@Danilo, almost.
Former user of pirated PB.
Now registered user :].
Now registered user :].