Догађаји
Изградите АИ апликације и агенте
17. мар 21 - 21. мар 10
Придружите се серији састанака како бисте изградили скалабилна АИ решења заснована на стварним случајевима коришћења са колегама програмерима и стручњацима.
Региструјте се одмахОвај прегледач више није подржан.
Надоградите на Microsoft Edge бисте искористили најновије функције, безбедносне исправке и техничку подршку.
The data type of a programming element refers to what kind of data it can hold and how it stores that data. Data types apply to all values that can be stored in computer memory or participate in the evaluation of an expression. Every variable, literal, constant, enumeration, property, procedure parameter, procedure argument, and procedure return value has a data type.
You define a programming element with a declaration statement, and you specify its data type with the As
clause. The following table shows the statements you use to declare various elements.
Programming element | Data type declaration |
---|---|
Variable | In a Dim StatementDim amount As Double Static yourName As String Public billsPaid As Decimal = 0 |
Literal | With a literal type character; see "Literal Type Characters" in Type CharactersDim searchChar As Char = "." C |
Constant | In a Const StatementConst modulus As Single = 4.17825F |
Enumeration | In an Enum StatementPublic Enum colors |
Property | In a Property StatementProperty region() As String |
Procedure parameter | In a Sub Statement, Function Statement, or Operator StatementSub addSale(ByVal amount As Double) |
Procedure argument | In the calling code; each argument is a programming element that has already been declared, or an expression containing declared elementssubString = Left( inputString , 5 ) |
Procedure return value | In a Function Statement or Operator StatementFunction convert(ByVal b As Byte) As String |
For a list of Visual Basic data types, see Data Types.
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације:
Догађаји
Изградите АИ апликације и агенте
17. мар 21 - 21. мар 10
Придружите се серији састанака како бисте изградили скалабилна АИ решења заснована на стварним случајевима коришћења са колегама програмерима и стручњацима.
Региструјте се одмахОбука
Модул
Choose the correct data type in your C# code - Training
Choose the correct data type for your code from several basic types used in C#.