• Domingo 18 de Mayo de 2025, 19:06

Mostrar Mensajes

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
801
Visual Basic para principiantes / Re: Como Programar Arreglos En Visual Basic 6.0
« en: Domingo 23 de Marzo de 2008, 00:23 »
Cita de: "VeronicaNF"
llenar el arreglo

en este caso llenare el arreglo de ceros

Código: Text
  1. For x = 0 to x = 18
  2.      arreglo(x) = "0"
  3. next x
  4.  

http://foros.solocodigo.com/index.php?show...ndpost&p=126454

Saludos
:rolleyes:  :P

802
Crystal Reports / Re: Dlls De Sql Server Para Crystal Report
« en: Domingo 23 de Marzo de 2008, 00:20 »
Busca en el google

Crystal Reporte Runtime
o
crystal report distributable
o
crystal report Redistributable

:P

Saludos

803
Visual Basic para principiantes / Re: Funcion Para Manejo De Cadena De Caracteres
« 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)

Código: Text
  1. For m = 0 To 21
  2.    formula(m) = Mid(w.Text, m + 1, 1)
  3. Next m
  4.  

Ahora, pudieras poner un ejemplo para que se utiliza la funcion de abajo, cuales son los datos que tiene que recibir etc



Saludos

804
Visual Basic 6.0 e inferiores / Re: Reproductor De Audio En Visual Basic 6.0
« en: Sábado 22 de Marzo de 2008, 23:57 »
Puedes mostrar el procedimiento en donde se pierde el nombre del archivo?



Mira esta discucion http://foros.solocodigo.com/index.php?showtopic=30786&hl=

Saludos

805
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
Power Builder / Re: Picture
« 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
Código: Text
  1. blob lbl_foto
  2.  
  3. setNull(lbl_foto)
  4.  
  5. selectblob foto
  6. into :lbl_foto
  7. from fotos
  8. where cod_articulo = :ls_cod_articulo;
  9.  
  10. if isnull(lbl_foto) then
  11.   p_foto.picturename= 'nodisponible.bmp'
  12. else
  13.    p_foto.SetPicture(lbl_foto)
  14. end if
  15.  

espero te sirva

Saludos

807
Power Builder / Re: Error En Expresion
« 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 ,

Citar
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
Power Builder / Re: Error En Expresion
« en: Jueves 20 de Marzo de 2008, 23:05 »
Cita de: "alexis17"
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?

Cita de: "alexis17"
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=106146

Tambien pueds mirar esto por si requieres que la cadena contenga el caracter '

http://foros.solocodigo.com/index.php?showtopic=32301

Saludos

809
Power Builder / Re: Picture
« 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

Código: Text
  1. p_foto.picturename='nodisponible.jpg'
  2.  

PD. Procura continuar los hilos ya abiertos antes de abrir otro para no crear mas infomacion de lo mismo por todos lados


saludos

810
PHP / Re: Formulario Que Aparece...
« en: Miércoles 19 de Marzo de 2008, 21:15 »
Investiga sobre appendChild

Código: Text
  1. &#60;script&#62;  
  2.  
  3. function crear() {
  4.   var tbx = document.createElement('input');
  5.   tbx.type = 'text';
  6.   tbx.name='a';
  7.   document.form1.appendChild(tbx);
  8. }
  9. &#60;/script&#62;
  10.  
  11. &#60;form id='form1' name='form1' &#62;
  12.   &#60;input type='button' onClick=&#34;crear()&#34; value=&#34;Crear Text&#34;&#62;&#60;br /&#62;&#60;br /&#62;
  13.   &#60;input type='text' value=&#34;&#34;&#62;
  14. &#60;/form&#62;
  15.  

Espero te sirva
Saludos

811
Power Builder / Re: Picture
« en: Martes 18 de Marzo de 2008, 22:08 »
Código: Text
  1. UPDATEBLOB tipo_habitacion SET foto = :lbl_data WHERE cod_tipo_hab = :ls_cod_thab;
  2.  

Debe de Guardarte la Imagen para eso es UPDATEBLOB, para guardar el binario del archivo


Saludos

812
Power Builder / Re: Picture
« en: Domingo 16 de Marzo de 2008, 07:26 »
Cita de: "alexis17"
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
Visual Basic 6.0 e inferiores / Re: Guardar Y Leer Password Encripatdo En Access
« en: Sábado 15 de Marzo de 2008, 20:37 »
Cita de: "willysistemas"
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
Sybase / Re: Dreamwever
« 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
Power Builder / Re: Validar
« en: Sábado 15 de Marzo de 2008, 20:28 »
Tienes que hacerlo con la funcion len

Código: Text
  1. if len(string(dw_1.object.nombre[1])) &#62;0 then
  2.     messagebox (&#34;&#34;,&#34;Contiene mas de 1 caracter&#34;)
  3. end if
  4.  

Saludos

816
SQL Server / Re: Sql Server Y Crystal Report
« en: Miércoles 12 de Marzo de 2008, 14:20 »
Haz probado con el formato YYYY-MM-DD ?

Código: Text
  1. 2008-03-01 al 2008-03-11
  2.  


Saludos

817
Power Builder / Re: Datos
« 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...
Citar

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.


Citar
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
PHP / Re: Buscador Casero
« en: Lunes 10 de Marzo de 2008, 02:16 »
Cita de: "Mollense"
Cita de: "Bonaparta"
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  B)




:P

819
PHP / Re: Buscador Casero
« 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
Visual Basic 6.0 e inferiores / Re: Error En Conexion Mysql
« en: Lunes 10 de Marzo de 2008, 02:12 »
instancia primero el objeto

Código: Text
  1. Set ConectarMysql = New ADODB.Connection
  2.  
  3. With ConectarMysql
  4. .
  5. .
  6. .
  7. .
  8.  

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

Código: Text
  1. dim ConectarMysql as New ADODB.Connection
  2.  

o

Código: Text
  1. Public ConectarMysql as New ADODB.Connection
  2.  

o sin usar ADODB.

Código: Text
  1. dim ConectarMysql as New Connection
  2.  

cuando creas la instancia al momento de la declaracion te evitas este paso

Código: Text
  1. Set ConectarMysql = New ADODB.Connection
  2.  
  3.  

Saludos Espero te sea de ayuda

821
ASP / Re: Error De Vínculo
« 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
Visual Basic 6.0 e inferiores / Re: Consulta Con Insert
« en: Sábado 8 de Marzo de 2008, 06:30 »
Cita de: "master32"
me da el sgte error " los numeros de valores de consulta y el numero de campos de destino son diferentes"
Claro que es Claro :P ...

<!--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-->

Cita de: "master32"
intente con un update y me modifico toda la bd

Habra que leer un poco mas sobre SQL ...



Saludos

823
Visual Basic para principiantes / Re: Generador De Visual Basic
« en: Martes 4 de Marzo de 2008, 09:07 »
Y cual es el punto?  :rolleyes:

824
PHP / Re: Funcion Mail Error
« en: Miércoles 27 de Febrero de 2008, 08:18 »
Tienes instalado, configurado y corriendo un servidor de correo?

http://msdn2.microsoft.com/es-es/library/8...c7t(VS.80).aspx
http://www.microsoft.com/technet/prodtechn...2.mspx?mfr=true

te recomiendo

uno que se llama Mercury32

http://www.google.com.mx/search?hl=es&q=me...on+Google&meta=

es muy sencillo y bueno



Saludos

825
Power Builder / Re: Creacion De Tablas Temporales
« en: Miércoles 27 de Febrero de 2008, 03:27 »
Bueno puedes hacer varias cosas

1 - Crear un Datawindow o un DataStore y utilizar el metodo Create y crearlo apartir de una cadena don almacenes tu Sentencia SQL
aqui hay un ejemplo (http://www.mtbase.com/foros/respuestas. ... werBuilder ), pero en la ayuda de PB viene muy claro

2- Puedes utilizar SQL Dinamico con el objeto SQLSA, para ejecutar SQL como una cadena
http://foros.solocodigo.com/index.php?showtopic=29988

3- Incluso puedes Ejecutar procedimientos Almacenados de ser necesario
http://foros.solocodigo.com/index.php?showtopic=32306
http://foros.solocodigo.com/index.php?showtopic=29987
http://foros.solocodigo.com/index.php?showtopic=9965

4-  Puedes tambien ejecutar SQL en cadenas con Execute Immeditate
http://foros.solocodigo.com/index.php?showtopic=5012
http://www.mtbase.com/foros/respuestas.jsp...ro=PowerBuilder

5- Crear tablas vinculadas de SQL server en Access y manipularlas como si estuvieran en access, para hacer los traspasos de Base a base

Espero que algo de esto te sirva

Saludos

Páginas: 1 ... 31 32 [33] 34 35 ... 83