inicializar una variable...

inicializar una variable...

Postby goosfancito » Fri Feb 23, 2024 4:50 pm

Hola.
Code: Select all  Expand view
  ::aTags[ 1 ] := buscarTag( "INLINE", cDetalle )
   ::aTags[ 2 ] := buscarTag( "INLINEA", cDetalle )
 


La función devuelve siempre un numero que puede ser un CERO.
NUNCA ambas llamadas van a tener el mismo valor, una de ellas SIEMPRE va a ser cero.
Como despues tengo que preguntar si algunas de las variables ::aTags[1] o ::aTags[2] es CERO...
es que quisiera hacer "algo asi"

::aTag[1]:= buscarTag("INLINE", cDetalle) > 0 .... buscarTag("INLINEA", cDetalle)

me explique?
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: inicializar una variable...

Postby Antonio Linares » Fri Feb 23, 2024 7:28 pm

AScan( ::aTag, { | n | n == 0 } ) ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests