Tutoriales ASP

ASP INICIO

Tutorial de WordPress

Introducción a las páginas web Razor de páginas web Diseño de páginas web Carpetas de páginas web Páginas web globales Formularios de páginas web Objetos de páginas web Archivos de páginas web Bases de datos de páginas web Ayudantes de páginas web Cuadrícula web de páginas web Gráficos de páginas web Correo electrónico de páginas web Seguridad de las páginas web Publicación de páginas web Ejemplos de páginas web Clases de páginas web

Maquinilla de afeitar ASP.NET

Introducción a la maquinilla de afeitar Sintaxis de la maquinilla de afeitar Variables de Razor C# Razor C# Bucles Razor C# Lógica Razor VB Variables Razor Bucles VB Razor VB Lógica

ASP clásico

Introducción ASP Sintaxis ASP Variables ASP Procedimientos ASP Condicionales ASP Bucle ASP Formularios ASP Cookies ASP Sesión ASP Aplicación ASP ASP #incluir ASP Global.asa ASP AJAX correo electrónico ASP Ejemplos de ASP

Referencia ASP

Funciones ASP VB Palabras clave ASP VB Respuesta ASP Solicitud ASP Aplicación ASP Sesión ASP Servidor ASP Error de ASP Sistema de archivos ASP flujo de texto ASP Unidad ASP Archivo ASP Carpeta ASP Diccionario ASP Rotador de anuncios ASP Cap del navegador ASP Enlace de contenido ASP Rotador de contenido ASP Referencia rápida ASP

ADO Tutorial

Introducción a ADO Conectar ADO Conjunto de registros ADO Pantalla ADO Consulta ADO Ordenar ADO Agregar Actualización de ADO ADO Eliminar Demostración de ADO Acelerar ADO

Objetos ADO

Comando ADO Conexión ADO ADO Error Campo ADO Parámetro ADO Propiedad ADO Registro ADO Conjunto de registros ADO Corriente ADO Tipos de datos ADO

Método CreateParameter de ADO


❮ Referencia completa de objetos de comando

El método CreateParameter crea y devuelve un objeto de parámetro que contiene las propiedades especificadas, como nombre, tipo, dirección, tamaño y valor.

Nota: este método no agrega automáticamente el nuevo parámetro a la colección. Para agregar el parámetro a la colección de parámetros, use la propiedad Append.

Sintaxis

Set objparameter=objcommand.CreateParameter (name,type,direction,size,value)

Parameter Description
name Optional. The name of the Parameter object.
type Optional. One of the DataTypeEnum constants that specifies the data type for the Parameter object. Default is adEmpty. If you choose a variable-length data type, you will also need to specify the Size parameter or the Size property. If you specify adDecimal or adNumeric data type, you must also set the NumericScale and the Precision properties of the Parameter object.
direction Optional. One of the ParameterDirectionEnum constants that defines the direction of the Parameter object. Default is adParamInput.
size Optional. Specifies the length of a variable-length data type, if such a type was declared in the Type parameter. Default is zero.
value Optional. The value of the Parameter object

Valores de DataTypeEnum

Especifica el tipo de datos de un objeto de campo, parámetro o propiedad

Constant Value Description
adEmpty 0 No value
adSmallInt 2 A 2-byte signed integer.
adInteger 3 A 4-byte signed integer.
adSingle 4 A single-precision floating-point value.
adDouble 5 A double-precision floating-point value.
adCurrency 6 A currency value
adDate 7 The number of days since December 30, 1899 + the fraction of a day.
adBSTR 8 A null-terminated character string.
adIDispatch 9 A pointer to an IDispatch interface on a COM object. Note: Currently not supported by ADO.
adError 10 A 32-bit error code
adBoolean 11 A boolean value.
adVariant 12 An Automation Variant. Note: Currently not supported by ADO.
adIUnknown 13 A pointer to an IUnknown interface on a COM object. Note: Currently not supported by ADO.
adDecimal 14 An exact numeric value with a fixed precision and scale.
adTinyInt 16 A 1-byte signed integer.
adUnsignedTinyInt 17 A 1-byte unsigned integer.
adUnsignedSmallInt 18 A 2-byte unsigned integer.
adUnsignedInt 19 A 4-byte unsigned integer.
adBigInt 20 An 8-byte signed integer.
adUnsignedBigInt 21 An 8-byte unsigned integer.
adFileTime 64 The number of 100-nanosecond intervals since January 1,1601
adGUID 72 A globally unique identifier (GUID)
adBinary 128 A binary value.
adChar 129 A string value.
adWChar 130 A null-terminated Unicode character string.
adNumeric 131 An exact numeric value with a fixed precision and scale.
adUserDefined 132 A user-defined variable.
adDBDate 133 A date value (yyyymmdd).
adDBTime 134 A time value (hhmmss).
adDBTimeStamp 135 A date/time stamp (yyyymmddhhmmss plus a fraction in billionths).
adChapter 136 A 4-byte chapter value that identifies rows in a child rowset
adPropVariant 138 An Automation PROPVARIANT.
adVarNumeric 139 A numeric value (Parameter object only).
adVarChar 200 A string value (Parameter object only).
adLongVarChar 201 A long string value.
adVarWChar 202 A null-terminated Unicode character string.
adLongVarWChar 203 A long null-terminated Unicode string value.
adVarBinary 204 A binary value (Parameter object only).
adLongVarBinary 205 A long binary value.
AdArray 0x2000 A flag value combined with another data type constant. Indicates an array of that other data type.

Valores de ParameterDirectionEnum

Especifica si el parámetro representa un parámetro de entrada, un parámetro de salida, tanto un parámetro de entrada como de salida, o el valor de retorno de un procedimiento almacenado.

Constant Value Description
adParamUnknown 0 Direction is unknown
adParamInput 1 Input parameter
adParamOutput 2 Output parameter
adParamInputOutput 3 Both input and output parameter
adParamReturnValue 4 Return value

❮ Referencia completa de objetos de comando