Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 14973

Can't Access Properties Of Declared Instance Of A Class

$
0
0
Hi Guys,

I have run into an odd situation that I can't seem to make sense of. I have a solution consisting of two projects, Project 1 is my DAL. This project contains 1 class module and contains functions that will be used as the Data Access Layer for my app. Project 2 is my BLL. The BLL consists of one class module per table and has public properties for each field in that table. The class modules are declared public. The BLL has a reference to the DAL and each class module has an Inherits statement referencing the DAL. The DAL is declared MustInherit. I am at a point where I wanted to do some simple tests so I created module in the BLL project. I dimmed a variable as a new instance of one of my classes and then attempted to access the properties of that instance and I couldn't. I get a syntax error saying declaration expected. No properties are displayed for the new instance of the class. Have also tried using a class module and a completely separate project with a reference to the BLL. I get the same result. Not sure what the deal is. Am not sure what code I should post to help resolve the issue. Not sure what I'm doing wrong. I know I am missing something but don't know what it is. Any help you can provide is appreciated.

Viewing all articles
Browse latest Browse all 14973

Trending Articles



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