Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Object reference not set to an instance of an object.

$
0
0
I have a program that allows the user to book seats for a theatre performance. When the form loads it creates a combobox with customer accounts in and allows the users to select a seat from a panel of buttons. The first time running the program it works perfectly however trying to book a seat again for another customer or even the same one. Or closing the program and then reopening it to book seats produces the following error when one of the seats is pressed.

Object reference not set to an instance of an object.


On this line

strFriBookArray(intSeatChoice).strCusNum = strCusArray(intCusAccountChoice).strCusNum

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>