• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

integer not showing a number i.e. &H0 rather than 0

i have started a new app and i declare a variable interger for a counter

dim gvi as integer = 0

but it is setting the value to &H0 which when i try to use it as a row index later doesn't work

what have i done
0
Marcusw
Asked:
Marcusw
  • 2
2 Solutions
 
Fernando SotoRetiredCommented:
Hi Marcusw;

Do you mean that when you look at the variable gvi in the Watch window of the debugger it shows up as &H0?

If so just right click on the Watch window and click on Hexadecimal Display and it should then display it as 0.

Fernando
0
 
Fernando SotoRetiredCommented:
This also means that the problem in the code is not that the debugger is showing the numeric values in hexadecimal format but must be something else.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now