473,385 Members | 1,766 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,385 software developers and data experts.

what is CType???

ASP.NET 2.0

Can someone send me a link to the description of CType?

I've been googling and don't get any usefull info...

Jeff
Feb 22 '07 #1
2 10454
google

vb.net ctype
"Jeff" <it************@hotmail.com.NOSPAMwrote in message news:uV**************@TK2MSFTNGP05.phx.gbl...
ASP.NET 2.0

Can someone send me a link to the description of CType?

I've been googling and don't get any usefull info...

Jeff

Feb 22 '07 #2
Ctype() = class type (or type of object)

It is used in VB to cast an object to another type. For example, you have a
mammal object that should be a dog (subclass).

Dim d as Dog = Ctype(mammal, Dog)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:uV**************@TK2MSFTNGP05.phx.gbl...
ASP.NET 2.0

Can someone send me a link to the description of CType?

I've been googling and don't get any usefull info...

Jeff
Feb 22 '07 #3

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

Similar topics

4
by: Mike Cooper | last post by:
There is something about inherited classes I evidently don't know... I wrote the following class: Class Class1 inherits System.Windows.Forms.DataGridTextBoxColumn End Class There is...
8
by: John A Grandy | last post by:
could someone please discuss the pros and cons of CType(MyDouble,Decimal) versus Convert.ToDecimal(MyDouble) .... and other such conversions ...
7
by: Brian Henry | last post by:
is there any speed diffrences between doing Ctype or directcast? I know about the inherite diffrences, but process usage time wise, does one take up more cycles then the other? thanks
15
by: Marcel | last post by:
Hi, I've found some sample code to put some text into Word. I'm testing this code to learn from it, but I can't find an explanation for the use of CType in the following code. Can someone...
6
by: buc | last post by:
I have created a simple login keyboard with QWERTY keys with a user textbox and password textbox. When I press a key the text goes into both boxes....? The focus event on both boxes eval to TRUE....
9
by: Just Me | last post by:
Public Shared Function GetValue(ByVal keyName As String, ByVal valueName As String, Optional ByVal badKey As Object = "") As Object Dim UserKey As RegistryKey =...
5
by: Nathan Sokalski | last post by:
I have a DataList that I was having trouble getting the events for. After a bit of help, I realized that I needed to put the databinding inside an If Not IsPostBack() condition. Although this fixed...
48
by: Frederick Gotham | last post by:
The "toupper" function takes an int as an argument. That's not too irrational given that a character literal is of type "int" in C. (Although why it isn't of type "char" escapes me... ) The...
0
by: rsine | last post by:
I have created my first windows service and have found that it fails when I initially start it but when I immediately try to restart the service it starts. What could be causing this behavior? I...
3
navanova
by: navanova | last post by:
Hi there, I've used the following function as part of a code to connect my vb.net application to sql server 2000. However, the underlined code below (at the while statement) says: "Operator '=' is...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.