IF ( nIdCliente := oC:existeCliente() != 0 )

IF ( nIdCliente := oC:existeCliente() != 0 )

Postby goosfancito » Thu Dec 07, 2023 8:24 am

Hola.
Se puede hacer esto?

Code: Select all  Expand view
IF ( nIdCliente := oC:existeCliente() != 0 )
...
endif

 


y no tener que hacer:

Code: Select all  Expand view
nIdCliente:= oC:existeCliente()
if (nIdCliente != 0)
...
endif
 
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: IF ( nIdCliente := oC:existeCliente() != 0 )

Postby Enrico Maria Giordano » Thu Dec 07, 2023 11:36 am

Code: Select all  Expand view
IF ( nIdCliente := oC:existeCliente() ) != 0
...
endif
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: IF ( nIdCliente := oC:existeCliente() != 0 )

Postby karinha » Thu Dec 07, 2023 12:47 pm

Code: Select all  Expand view

   IF EMPTY( nIdCliente )
   ...
   ENDIF
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7213
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: IF ( nIdCliente := oC:existeCliente() != 0 )

Postby cnavarro » Thu Dec 07, 2023 4:13 pm

goosfancito wrote:Hola.
Se puede hacer esto?

Code: Select all  Expand view
IF ( nIdCliente := oC:existeCliente() != 0 )
...
endif

 


y no tener que hacer:

Code: Select all  Expand view
nIdCliente:= oC:existeCliente()
if (nIdCliente != 0)
...
endif
 


intenta asi
Code: Select all  Expand view

IF ( ( nIdCliente := oC:existeCliente() ) != 0 )
...
endif
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: IF ( nIdCliente := oC:existeCliente() != 0 )

Postby goosfancito » Thu Dec 07, 2023 4:27 pm

listo.
gracias a todos.
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


Return to FiveWin para Harbour/xHarbour

Who is online

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