473,383 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Pascal-style "types"

Hi,

It is possible, in VB asp.net, to have something along the same lines as
Pascal "types"?

By that, I mean something like (in Pascal)

Type
TOrganisaztion = (customer, supplier, other);

Var
organisation : TOrganisation;
<later on in code>

if (organisation=customer) then.....

I know I could use public static's or something, but that's more like a
"const" than a "type"

TIA,
A.
Nov 19 '05 #1
3 1063
Try posting this in the languages newsgroup
microsoft.public.dotnet.languages.vb ( i think)

I'm sure you could get a definate answer there.
"Adam" <Ad****@yahoo.com> wrote in message
news:IB*******************@fe2.news.blueyonder.co. uk...
Hi,

It is possible, in VB asp.net, to have something along the same lines as
Pascal "types"?

By that, I mean something like (in Pascal)

Type
TOrganisaztion = (customer, supplier, other);

Var
organisation : TOrganisation;
<later on in code>

if (organisation=customer) then.....

I know I could use public static's or something, but that's more like a
"const" than a "type"

TIA,
A.

Nov 19 '05 #2
"Adam" <Ad****@yahoo.com> wrote in
news:IB*******************@fe2.news.blueyonder.co. uk:
Hi,

It is possible, in VB asp.net, to have something along the same
lines as Pascal "types"?

By that, I mean something like (in Pascal)

Type
TOrganisaztion = (customer, supplier, other);

Var
organisation : TOrganisation;
<later on in code>

if (organisation=customer) then.....

I know I could use public static's or something, but that's more
like a "const" than a "type"


Adam,

http://msdn.microsoft.com/library/de...ClassTopic.asp

or

http://tinyurl.com/58ngf
--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 19 '05 #3
>> It is possible, in VB asp.net, to have something along the same
lines as Pascal "types"?


http://msdn.microsoft.com/library/de...ClassTopic.asp

or

http://tinyurl.com/58ngf


Thanks Chris/

A.
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: jerry.xuddd | last post by:
Hello, I am quite new to c#, so this question may be quite stupid. I saw some variables are defined as this: ArrayList _Text= new ArrayList(); why _ is needed? _ --
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.