|
Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.
Mensajes - F_Tanori
Páginas: 1 ... 31 32 [33] 34 35 ... 83
802
« en: Domingo 23 de Marzo de 2008, 00:20 »
Busca en el google Crystal Reporte Runtime o crystal report distributable o crystal report Redistributable  Saludos
803
« en: Domingo 23 de Marzo de 2008, 00:17 »
La sintaxis no es correcta , <!--xc1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td> XCODE </td></tr><tr><td id='XCODE'><!--exc1-->For m = 0 To m = 21 formula(m) = Mid(w.Text, m + 1, 1) Next m<!--xc2--></td></tr></table><div class='postcolor'><!--exc2--> No tienes que asignarle de nuevo el valor "Hasta" a la variable (eso lo hace el ciclo) For m = 0 To 21 formula(m) = Mid(w.Text, m + 1, 1) Next m
Ahora, pudieras poner un ejemplo para que se utiliza la funcion de abajo, cuales son los datos que tiene que recibir etc Saludos
805
« en: Sábado 22 de Marzo de 2008, 23:21 »
Puedes mostrar el procedimiento que te da el error?
aca hemos utilizado las transacciones sin problemas e access y VB con ADO
que version de Access estas utilizando?
Saludos
806
« en: Sábado 22 de Marzo de 2008, 23:18 »
NVL es para datos nulos es como (IFNULL de MySQL o ISNULL de SQL SERVER) , no se si funciones con blob al parecer no , Prueba de esta manera blob lbl_foto setNull(lbl_foto) selectblob foto into :lbl_foto from fotos where cod_articulo = :ls_cod_articulo; if isnull(lbl_foto) then p_foto.picturename= 'nodisponible.bmp' else p_foto.SetPicture(lbl_foto) end if
espero te sirva Saludos
807
« en: Sábado 22 de Marzo de 2008, 22:58 »
Si , el numero positivo que devuelva es el numero de la primera fila encontrada segun el criterio , Find method (DataWindows)
Return value
Returns the number of the first row that meets the search criteria within the search range. Returns 0 if no rows are found and one of these negative numbers if an error occurs:
-1 General error -5 Bad argument
If any argument's value is NULL, in PowerBuilder and JavaScript the method returns NULL. Saludos
808
« en: Jueves 20 de Marzo de 2008, 23:05 »
buenas tardes el campo cod_asoc en mi tabla es varchar s_find = "cod_asoc = ' " +is_tipo + " ' "
Pues si es varchar tiene que llevar comillas, sino no podras buscarlo, podrias dar una explicacion mas clara? ls_find = "cod_asoc = " +is_tipo entonces me manda un error el siguiente Expression is not valit
Mira este hilo es con el metodo SetFilter pero las condiciones son iguales que para Find http://foros.solocodigo.com/index.php?show...ndpost&p=106146Tambien pueds mirar esto por si requieres que la cadena contenga el caracter 'http://foros.solocodigo.com/index.php?showtopic=32301Saludos
809
« en: Jueves 20 de Marzo de 2008, 03:37 »
Pues cuando no tenga fotografia puedes cambiarle el archivo por uno que tu ya tengas por ejemplo p_foto.picturename='nodisponible.jpg'
PD. Procura continuar los hilos ya abiertos antes de abrir otro para no crear mas infomacion de lo mismo por todos lados saludos
810
« en: Miércoles 19 de Marzo de 2008, 21:15 »
Investiga sobre appendChild <script> function crear() { var tbx = document.createElement('input'); tbx.type = 'text'; tbx.name='a'; document.form1.appendChild(tbx); } </script> <form id='form1' name='form1' > <input type='button' onClick="crear()" value="Crear Text"><br /><br /> <input type='text' value=""> </form>
Espero te sirva Saludos
811
« en: Martes 18 de Marzo de 2008, 22:08 »
UPDATEBLOB tipo_habitacion SET foto = :lbl_data WHERE cod_tipo_hab = :ls_cod_thab;
Debe de Guardarte la Imagen para eso es UPDATEBLOB, para guardar el binario del archivo Saludos
812
« en: Domingo 16 de Marzo de 2008, 07:26 »
mi idea es tener eso es un datawindows external tabular
Según recuerdo no puedes tener un campo blob en un datawindow, y creo que menos en la version 6.5 lo que pudieras hacer es escribir el archivo en disco y despues leerlo en el DW , situacion que no es optima en todos los casos Saludos
813
« en: Sábado 15 de Marzo de 2008, 20:37 »
Hola todos
alguien me podria ayudar con un codigo que me permita guardar una calave de usuario encriptada y poder acceder a traves de un formulario quieres poder volver a visualizar la palabra ?
814
« en: Sábado 15 de Marzo de 2008, 20:36 »
DW no accesa a nada solo es un editor de paginas web necesitas un lenguaje de programacion que puedas usar en DW (si asi lo prefieres), PHP, ASP,Coldfusion etc...
y con uno de ellos conectarte a Sybase
Saludos
815
« en: Sábado 15 de Marzo de 2008, 20:28 »
Tienes que hacerlo con la funcion len if len(string(dw_1.object.nombre[1])) >0 then messagebox ("","Contiene mas de 1 caracter") end if
Saludos
816
« en: Miércoles 12 de Marzo de 2008, 14:20 »
Haz probado con el formato YYYY-MM-DD ? Saludos
817
« en: Martes 11 de Marzo de 2008, 05:58 »
el DataWindow trae un metodo para importar archivos.... no estoy seguro si en esa version, tambien puedes usar FILEOPEN En la ayuda de Powerbuilder debe decirte como... en esta maquina solo tengo PB10 Tal vez te sirva... Description
Opens the specified file for reading or writing and assigns it a unique integer file number. You use this integer to identify the file when you read, write, or close the file. The optional arguments filemode, fileaccess, filelock, and writemode determine the mode in which the file is opened. Syntax
FileOpen ( filename {, filemode {, fileaccess {, filelock {, writemode { encoding }}}}} )
Argument Description filename A string whose value is the name of the file you want to open. If filename is not on the current directory's relative search path, you must enter the fully qualified name. filemode (optional) A value of the FileMode enumerated type that specifies how the end of a file read or file write is determined. Values are:· LineMode! — (Default) Read or write the file a line at a time· StreamMode! — Read blocks of binary data· TextMode! — Read text blocksFor more information, see Usage below. fileaccess (optional) A value of the FileAccess enumerated type that specifies whether the file is opened for reading or writing. Values are:· Read! — (Default) Read-only access· Write! — Write-only accessIf PowerBuilder does not find the file, a new file is created if the fileaccess argument is set to Write! filelock (optional) A value of the FileLock enumerated type specifying whether others have access to the opened file. Values are:· LockReadWrite! — (Default) Only the user who opened the file has access· LockRead! — Only the user who opened the file can read it, but everyone has write access· LockWrite! — Only the user who opened the file can write to it, but everyone has read access· Shared! — All users have read and write access. writemode (optional) A value of the WriteMode enumerated datatype. When fileaccess is Write!, specifies whether existing data in the file is overwritten. Values are:· Append! — (Default) Write data to the end of the file· Replace! — Replace all existing data in the fileWritemode is ignored if the fileaccess argument is Read! encoding Character encoding of the file you want to create. Specify this argument when you create a new text file using text or line mode. If you do not specify an encoding, the file is created with ANSI encoding. Values are:· EncodingANSI! (default)· EncodingUTF8!· EncodingUTF16LE!· EncodingUTF16BE! Return value
Integer. Returns the file number assigned to filename if it succeeds and -1 if an error occurs. If any argument's value is null, FileOpen returns null.
Usage
The mode in which you open a file determines the behavior of the functions used to read and write to a file. There are two functions that read data from a file: FileRead and FileReadEx, and two functions that write data to a file: FileWrite and FileWriteEx. FileRead and FileWrite have limitations on the amount of data that can be read or written and are maintained for backward compatibility. They do not support text mode. For more information, see FileRead and FileWrite.
The support for reading from and writing to blobs and strings for the FileReadEx and FileWriteEx functions depends on the mode. The following table shows which datatypes are supported in each mode.
Mode Blob String Line Not supported Supported Stream Supported Not supported Text Supported Supported When a file has been opened in line mode, each call to the FileReadEx function reads until it encounters a carriage return (CR), linefeed (LF), or end-of-file mark (EOF). Each call to FileWriteEx adds a CR and LF at the end of each string it writes. When a file has been opened in stream mode or text mode, FileReadEx reads the whole file until it encounters an EOF or until it reaches a length specified in an optional parameter. FileWriteEx writes the full contents of the string or blob or until it reaches a length specified in an optional parameter.
The optional length parameter applies only to blob data. If the length parameter is provided when the datatype of the second parameter is string, the code will not compile. In all modes, PowerBuilder can read ANSI, UTF-16, and UTF-8 files. The behavior in stream and text modes is very similar. However, stream mode is intended for use with binary files, and text mode is intended for use with text files. When you open an existing file in stream mode, the file's internal pointer, which indicates the next position from which data will be read, is set to the first byte in the file.
A byte-order mark (BOM) is a character code at the beginning of a data stream that indicates the encoding used in a Unicode file. For UTF-8, the BOM uses three bytes and is EF BB BF. For UTF-16, the BOM uses two bytes and is FF FE for little endian and FE FF for big endian. When you open an existing file in text mode, the file's internal pointer is set based on the encoding of the file:
· If the encoding is ANSI, the pointer is set to the first byte · If the encoding is UTF-16LE or UTF-16BE, the pointer is set to the third byte, immediately after the BOM · If the encoding is UTF-8, the pointer is set to the fourth byte, immediately after the BOM
If you specify the optional encoding argument and the existing file does not have the same encoding, FileOpen returns -1. File not found If PowerBuilder does not find the file, it creates a new file, giving it the specified name, if the fileaccess argument is set to Write!. If the argument is not set to Write!, FileOpen returns -1.
If the optional encoding argument is not specified and the file does not exist, the file is created with ANSI encoding. When you create a new text file using FileOpen, use line mode or text mode. If you specify the encoding parameter, the BOM is written to the file based on the specified encoding. When you create a new binary file using stream mode, the encoding parameter, if provided, is ignored.
This example uses the default arguments and opens the file EMPLOYEE.DAT for reading. The default settings are LineMode!, Read!, LockReadWrite!, and EncodingANSI!. FileReadEx reads the file line by line and no other user is able to access the file until it is closed:
integer li_FileNum
li_FileNum = FileOpen("EMPLOYEE.DAT")
This example opens the file EMPLOYEE.DAT in the DEPT directory in stream mode (StreamMode!) for write only access (Write!). Existing data is overwritten (Replace!). No other users can write to the file (LockWrite!):
integer li_FileNum
li_FileNum = FileOpen("C:\DEPT\EMPLOYEE.DAT", &
StreamMode!, Write!, LockWrite!, Replace!)
This example creates a new file that uses UTF8 encoding. The file is called new.txt and is in the D:\temp directory. It is opened in text mode with write-only access, and no other user can read or write to the file:
integer li_ret
string ls_file
ls_file = "D:\temp\new.txt"
li_ret = FileOpen(ls_file, TextMode!, Write!, &
LockReadWrite!, Replace!, EncodingUTF8!) Saludos
818
« en: Lunes 10 de Marzo de 2008, 02:16 »
Creo que tenés un concepto equivocado de como funciona esto..
La idea es NO ES HACERTE las cosas.. sino ayudarte para que PUEDAS HACERLAS.
Ni siquiera te molestaste en buscar en Google, porque si lo hubieras hecho te habrías dado cuenta que hay cientos de sitios que explican cómo hacer un buscador.
La gente como vos debería ser baneada. ¿Recién entra y ya lo querés banear?, mejor le mostramos las reglas del foro
un 5710 de rutina
819
« en: Lunes 10 de Marzo de 2008, 02:15 »
La descripción es muy confusa :S, yo no entendi lo que necesita.... especifica mejor lo que necesitas hacer y que es lo que sabes hacer y lo que tienes hecho
Saludos
820
« en: Lunes 10 de Marzo de 2008, 02:12 »
instancia primero el objeto Set ConectarMysql = New ADODB.Connection With ConectarMysql . . . .
Como no se ve ese objeto de conexion declarado dentro de la funcion, supongo que es una variable de instancia o global de cualquier forma puedes instanciar al momento de declarar la variable dim ConectarMysql as New ADODB.Connection
o Public ConectarMysql as New ADODB.Connection
o sin usar ADODB. dim ConectarMysql as New Connection
cuando creas la instancia al momento de la declaracion te evitas este paso Set ConectarMysql = New ADODB.Connection
Saludos Espero te sea de ayuda
821
« en: Sábado 8 de Marzo de 2008, 07:13 »
accesa a través de un servidor web... (http://)
en el foro hay mucha informacion....
Saludos
822
« en: Sábado 8 de Marzo de 2008, 06:30 »
me da el sgte error " los numeros de valores de consulta y el numero de campos de destino son diferentes" Claro que es Claro  ... <!--sql--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td> SQL </td></tr><tr><td id='CODE'><!--sql1-->[color=blue;font-weight]INSERT[/color] INTO tabla (campo1,campo2,campo3) VALUES (valor1,valor2) <!--sql2--></td></tr></table><div class='postcolor'><!--sql3--> <!--sql--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td> SQL </td></tr><tr><td id='CODE'><!--sql1-->[color=blue;font-weight]INSERT[/color] INTO tabla (campo1,campo2) VALUES (valor1,valor2,valor3) <!--sql2--></td></tr></table><div class='postcolor'><!--sql3--> El número de campos que quieres, insertar debe ser igual a los valores y en el mismo orden... ni mas campos ni mas valores ( Iguales) <!--sql--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td> SQL </td></tr><tr><td id='CODE'><!--sql1-->[color=blue;font-weight]INSERT[/color] INTO tabla (campo1,campo2,campo3) VALUES (valor1,valor2,valor3) <!--sql2--></td></tr></table><div class='postcolor'><!--sql3--> intente con un update y me modifico toda la bd Habra que leer un poco mas sobre SQL ... Saludos
823
« en: Martes 4 de Marzo de 2008, 09:07 »
Y cual es el punto?
824
« en: Miércoles 27 de Febrero de 2008, 08:18 »
Páginas: 1 ... 31 32 [33] 34 35 ... 83
|
|
|