Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > .NET

Reply
 
LinkBack Thread Tools
Old October 29th, 2008, 12:08 PM   #1
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
VB.Net .... very basic class question

Hi chaps,

I have finally got a grip on the whole OOP thing, and ive just started to write my first application.

However, i only got as far as writing my fist class before i realised i was missing something pretty fundemental.

I have a folder structure whereby the underlying vb pages will process the basic variables, but, i also have a seperate class file that contains all of my global classes that im going to uses throughout my application.

Problem is.... how do i tell index.vb where the class i want it to use actually is??

Do i use includes ???

or do i reference it via file structure using something like "foo.bah.myclasses.vb"

Simple question i think..... any advice would be greatfully recieved

Thanks guys

Accura
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old October 29th, 2008, 12:41 PM   #2
Reputable Member
 

Join Date: May 2006
Location: Warrington, UK
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Accurax is on a distinguished road
Re: VB.Net .... very basic class question

ok it is very simple:

Assuming you have defined your classes inside your appcode folder you can just reference them as:
Code:
Public newobject As String = class.method
this is obviosly in VB.ne .... but the same (diff syntax) will work in C# too
Accurax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
A couple of basic question- please. dhall Your Design and Layout 7 August 17th, 2007 02:41 PM
Basic JS question klonopin JavaScript 1 March 14th, 2007 09:31 PM
basic form question antonyx Classic ASP 1 August 30th, 2006 10:18 AM
Probably very basic CSS question JonRouston HTML, XHTML and CSS 3 May 18th, 2006 08:08 AM
Basic XML question fogofogo Other Languages 2 November 23rd, 2005 04:58 AM


Search Engine Optimization by vBSEO 3.2.0 RC8