Wrox Programmer Forums
|
Visual Basic 2008 Professionals For advanced Visual Basic coders working in version 2008. Beginning-level questions will be redirected to other forums,
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2009, 06:29 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default Variables

Hi,

Is there any unsigned variables other than the number specific ones such as ULong, UInteger etc.

And is there anyway of fixing the length of a variable; say i wanted a char of length 3?

Thanks
__________________
Apocolypse2005, I'm a programmer - of sorts.
 
Old July 25th, 2009, 05:41 AM
Registered User
 
Join Date: Jun 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating custom Variables Types

The predefined types can be aggregated and extended into custom types.

Custom value types are declared with the struct or enum keyword. Likewise, custom reference types are declared with the class keyword.

The built in data type are unable to change,because they are specific to Language architecture , every language have different variable allocation size like in C language int size 2 bytes , in c# 4 bytes.

There is way to defined the custom data types according to requirement .

A good way to create a custom values type use the following link this elaborate the solution.

http://www.stephenchu.com/2006/02/go...alue-type.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
Variables Apocolypse2005 C# 2008 aka C# 3.0 2 November 12th, 2009 10:12 AM
variables daniel.mihalcea Javascript 1 September 9th, 2008 07:06 PM
using variables webgrphx Classic ASP Basics 3 April 11th, 2007 06:46 PM
Global variables ps124 ASP.NET 1.0 and 1.1 Basics 6 April 6th, 2004 02:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.