FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour comando IN de xharbour(SOLUCIONADO)
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
comando IN de xharbour(SOLUCIONADO)
Posted: Wed May 28, 2014 05:34 PM
Estimados

como se reemplaza el comando IN de xharbour a Harbour

Code (fw): Select all Collapse
IN
Searches a value in another value. 
Syntax
<cSubString> IN <cString>
<xValue>     IN <aArray>
<xKey>       IN <hHash>
// The example demonstrates results of the IN operator with values
// of different data types.

   PROCEDURE Main
      LOCAL cString := "xHarbour"
      LOCAL hHash   := { "A" => Date(), 1 => "B" }
      LOCAL aSub    := { 1, 2 }
      LOCAL aArray  := { 1, Date(), aSub }

      ? "A"   IN cString               // result: .F.
      ? "arb" IN cString               // result: .T.

      ?  "A"  IN hHash                 // result: .T.
      ?  "B"  IN hHash                 // result: .F.
      ?   1   IN hHash                 // result: .T.

      ? "A"    IN aArray               // result: .F.
      ? Date() IN aArray               // result: .T.
      ? aSub   IN aArray               // result: .T.
   RETURN
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: comando IN de xharbour
Posted: Wed May 28, 2014 07:01 PM

Mira se ayuda:

http://www.fivetechsoft.com/harbour-doc ... ml#Strings

Busca por AT() también.

sALU2.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: comando IN de xharbour (SOLUCIONADO)
Posted: Wed May 28, 2014 10:03 PM

Gracias karinha

los datos que reemplace eran de arreglo, solucione con ASCAN

Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl

Continue the discussion