Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/11/2012, 13:25
Avatar de NetFcruz
NetFcruz
 
Fecha de Ingreso: agosto-2012
Ubicación: Reynosa
Mensajes: 32
Antigüedad: 11 años, 8 meses
Puntos: 0
Busqueda Respuesta: Como extraer una palabra del texto de un texbox VB2010

Cita:
Iniciado por Aquaventus Ver Mensaje
Hola NetFcruz, como está estructurado tu archivo de texto?
Ok, gracias por contestar amigo.
Un cordial saludo.
Tengo en mi Richtexbox esto ACCEPTED:

Código:
-
-
-
<?xml version="1.0" encoding="utf-8"?><AckErrorApplication xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" contentVersion="2.0" documentStructureVersion="AMC7.1" creationDate="20121105" documentStatus="ACCEPTED"><ackErrorApplicationIdentification><entityType>305</entityType><uniqueCreatorIdentification>31669759</uniqueCreatorIdentification></ackErrorApplicationIdentification><ApplicationInformation><deliveryDatePresent>2012-11-05</deliveryDatePresent></ApplicationInformation><ReferenceNumber><referenceIdentification>CTT</referenceIdentification><type>SE</type></ReferenceNumber><ReferenceNumber><referenceIdentification>5700</referenceIdentification><type>IV</type></ReferenceNumber><ReferenceNumber><referenceIdentification>1458649</referenceIdentification><type>ACE</type></ReferenceNumber><Buyer><nameAndAddress><name>TIENDAS SORIANA, S.A. DE C.V.</name></nameAndAddress></Buyer><Seller><nameAndAddress><name>EDITORA DEMAR, S.A. DE C.V.</name></nameAndAddress></Seller></AckErrorApplication>
-
-
-
-
Y otro con esta REJECT

Código:
-
-
-
<?xml version="1.0" encoding="utf-8"?><AckErrorApplication xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" contentVersion="2.0" documentStructureVersion="AMC7.1" creationDate="20121105" documentStatus="REJECT"><ackErrorApplicationIdentification><entityType>305</entityType><uniqueCreatorIdentification>31669795</uniqueCreatorIdentification></ackErrorApplicationIdentification><ApplicationInformation><deliveryDatePresent>2012-11-05</deliveryDatePresent></ApplicationInformation><ReferenceNumber><referenceIdentification>CRT</referenceIdentification><type>SE</type></ReferenceNumber><ReferenceNumber><referenceIdentification>7652</referenceIdentification><type>IV</type></ReferenceNumber><Buyer><nameAndAddress><name>TIENDAS SORIANA, S.A. DE C.V.</name></nameAndAddress></Buyer><Seller><nameAndAddress><name>EDITORA DEMAR, S.A. DE C.V.</name></nameAndAddress></Seller><messageError sequence="1"><errorCode>APLICATION ERROR CODE</errorCode><errorDescription><text>Error al Notificar a SuperCity. Server was unable to process request. ---&gt; La orden ya ha sido documentada en otra factura.</text></errorDescription></messageError></AckErrorApplication>
-
-
-
Quiero extraer la palabra Acepted o Reject de ese texto contenido en el RTexbox y una vez obtenida depositarla a una variable que tenga definida string.
__________________
!El conocimiento se LIMITA cuando dices NO PUEDO!

By NetFcruz

Última edición por NetFcruz; 12/11/2012 a las 13:26 Razón: Texto