border

Miembros:
Mensajes:
Temas:
Online:

Ultimo Miembro:

 
 


Retroceder   VB-MUNDO - Programacion Visual > Programacion WEB - Lenguajes & Programas > VBScripts, JavaScripts, etc.
Registrarse FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos

VBScripts, JavaScripts, etc. VBSCripts, JavaScripts, etc.

Respuesta
 
LinkBack Herramientas Desplegado
  #1 (permalink)  
Antiguo 09-04-2007, 19:31:30
Un Nuevo Amigo
 
Registrado: mar 2007
Posts: 11
T800 Valoración +2
Predeterminado Filtro con Scripts

Hola soy nuevo en esto de los VBscripts.. y les queria consultar algo..

Lo que quiero hacer es por medio de un VBscripts filtrar palabras y ponerlas en otro txt.. Esto como se entiende???

Por ejemplo:

texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto

Number: 24-22-32-6214-01090
REAL ESTATE PROPERTY

Owner & Address:

SCHMIDT ANTON
SCHMIDT ROSE
C/O ROSE L KERSCHL
PASSAUERSTR 5
PLATTLING GERMANY 944470000

texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto
texto texto texto texto texto texto texto texto texto texto

Quiero que me genere un txt con:

Number: 24-22-32-6214-01090 REAL ESTATE PROPERTY

Owner & Address:SCHMIDT ANTON SCHMIDT ROSE C/O ROSE L KERSCHL PASSAUERSTR 5 PLATTLING GERMANY 944470000

Osea que los busque por ejemplo Number: que me traiga todo lo que contenga despues del : hasta que se tope con otra palabra clave por ejemplo Owner & Address:

Se puede hacer eso???

Desde ya muchas Gracias!!!
Responder Con Cita
  #2 (permalink)  
Antiguo 10-04-2007, 07:01:48
Avatar de J.M.Movilla
Administrator
 
Registrado: dic 2002
Ubicación: BURGOS - ESPAÑA
Posts: 5.100
J.M.Movilla Valoración +2
Predeterminado

Código:
Dim n1 as integer, n2 as integer
Dim TextoFinal As String

TextoFinal=""
n1=inStr(TextoGlobal,"Number")
n2=InStr(TextoGlobal,"Owner & Address")
If n1 > 0 and n2 > 0 then
    TextoFinal = TextoFinal & Mid(TextoGlobal, n1, n2-n1)
End If
De esta forma sigues buscando las siguientes claves inicial y final, y vas incrementando TextoFinal...

Bueno, yo te lo pongo en lenguaje propio de VB... Supongo que tengas que adaptarlo al de VBScripts...
__________________
José María Movilla Cuadrado
______________________

Visual Basic Videos Programacion Foro Programacion
Tutoriales Programacion Trucos Programacion Codigos Programacion
Responder Con Cita
  #3 (permalink)  
Antiguo 10-04-2007, 20:51:33
Un Nuevo Amigo
 
Registrado: mar 2007
Posts: 11
T800 Valoración +2
Predeterminado

Lo voy a probar!!!

Muchisimas Gracias!!!
Responder Con Cita
Respuesta


Herramientas
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Trackbacks are habilitado
Pingbacks are habilitado
Refbacks are habilitado


Temas Similares
Tema Autor Foro Respuestas Último Mensaje
Hacer un scripts para hacer un nslookup cluster28 Visual Basic.NET 2003 & 2005 1 15-08-2007 01:05:54
scripts cargar formularios trinado Visual Basic 6.00 4 18-04-2007 08:56:27
filtro oscar_brs Visual Basic.NET 2003 & 2005 2 26-11-2006 15:55:24
Filtro LAN geq Visual Basic 6.00 1 28-11-2004 03:00:02
filtro de datos kekofraga Visual Basic 6.00 9 25-02-1970 02:43:13


La franja horaria es GMT. Ahora son las 07:40:20.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
A vBSkinworks Design

Alojado en el servicio Premium de Masquewebs | Diseño mejorado por MasqueWebs

right