Page 1 of 1

inicializar una variable...

PostPosted: Fri Feb 23, 2024 4:50 pm
by goosfancito
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?

Re: inicializar una variable...

PostPosted: Fri Feb 23, 2024 7:28 pm
by Antonio Linares
AScan( ::aTag, { | n | n == 0 } ) ?