Search found 277 matches: elseif

Return to advanced search

Re: If anidados o DO CASE?

... condición, ya sea sí o no. De cualquier manera, ambos modos harán lo que quieras. Creo que el comando DO CASE ... ENDCASE es más antiguo que IF..ELSEIF..ENDIF. En resumen, la decisión es tuya. Prefiero IF ... ELSEIF ... ENDIF, por cuestión de gustos. Abrazos. https://www.itlnet.net/programming/program/Reference/c53g01c/ng1054c7.html ...
by karinha
Sat Aug 14, 2021 1:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: If anidados o DO CASE?
Replies: 9
Views: 1125

Re: Determine names of months between two dates

... me only June and September while it should also return me May. I can't do a do case or an if of the type IF nListino = 1 ..... names of mounth elseif Price list = 2 ..names of mounth endif because I don't know what the date ranges are , they could be more varied and there could be more price ...
by Silvio.Falconi
Tue May 11, 2021 7:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Determine names of months between two dates - Resolved !!!!
Replies: 3
Views: 416

Re: Get ...picture ...error strange

... if nOrder == 1 @ 0,7 SAY i18n( "Introdurre il cliente'" ) OF oDlg @ 1,2 SAY i18n( "Cliente :" ) OF oDlg cGet := space(40) elseif nOrder == 2 ... Endif @ 1.3,6 GET oGet VAR cGet PICTURE "@!" OF oDlg SIZE 150, 11 UPDATE
by Silvio.Falconi
Thu Apr 15, 2021 10:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get ...picture ...error strange--- resolved!!!
Replies: 3
Views: 512

ArrayIncrFilter

... } oCol:bEditWhen := { || IF(aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,6]=0,.T.,.F.) } ElseIf n == 2 oCol:nEditType := EDIT_GET oCol:bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_RETURN,aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,2]:=xVal,) ...
by jbrita
Thu Apr 01, 2021 2:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ArrayIncrFilter
Replies: 2
Views: 634

Re: Handling images and other files

... nAt := AT( "base64", cText ) ) > 0 cText := SubStr( cText, nAt + 6 ) if Left( cText, 1 ) == "," cText := SubStr( cText, 2 ) elseif UPPER( Left( cText, 3 ) ) == "%2C" cText := SubStr( cText, 4 ) else lValid := .f. endif if lValid do while Right( cText, 1 ) $ [>)"] ...
by Otto
Thu Jan 07, 2021 4:17 pm
 
Forum: mod_harbour
Topic: Handling images and other files
Replies: 4
Views: 1228

COMO ABRIR UNA WEB CON CHROME

... ) SysRefresh() linetxt:=Rtrim(memoline(cCode,80,a,3,.t.)) If IsDigit(Alltrim(Left( linetxt,2 ))) cDia :=Alltrim(Left( linetxt,2 )) lDia := .T. ElseIf !IsDigit(Alltrim(Left( linetxt,2 ))) If Left(linetxt,6)="Compra" cCompra := Val(StrTran( Alltrim(linetxt),"Compra","" ...
by CARLOS ATUNCAR
Fri Dec 18, 2020 1:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: COMO ABRIR UNA WEB CON CHROME
Replies: 2
Views: 808

2003 Can't connect to Mysql server on 'localhost' (10061)

... Quiero detectar cuando no se conecta.... He hecho FWCONNECT oCn HOST chost USER cUser PASSWORD cPassword DB cDatabase if ocn == nil msginfo() elseif ocn:nError <> 0 MsgInfo() Endif Antes de entrar en el if, me muestra el mensaje de error. Gracias.
by D.Fernandez
Wed Sep 16, 2020 9:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: 2003 Can't connect to Mysql server on 'localhost' (10061)
Replies: 3
Views: 549

Re: bad calculation prices for days

Solo para optimizar:
If nDays > 21
---
elseif nDays > 10
----
elseif nDays > 1
-----
else
-----
by gdeteran
Tue Jul 07, 2020 9:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bad calculation prices for days
Replies: 13
Views: 1907

xbrowse row colours

... ).and. cust->guarancode = " "), ; { CLR_WHITE, CLR_GREEN }, { CLR_BLACK,CLR_WHITE } ) } //@IA 20200301*/ Do I have to use elseif in the oBrw:bClrStd? If( (cust->resstatus = "###Cancelled" .and. cust->guarancode = " ") --> backgroundcolur should ...
by Iris Gesser
Mon Mar 02, 2020 10:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse row colours
Replies: 4
Views: 947

Re: Crear Archivo Json y Enviarlo vía POST

... cNorIde := aHasRes["Id"] SET DEVICE TO SCREEN alert("Proceso terminó con éxito. Archivo generado : ") ELSEIF aHasRes["Result"] == 1 cDatoQr := "1- "+aHasRes["Description"] mymen("Error. Enviando factura electrónica ...
by russimicro
Wed May 08, 2019 9:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear Archivo Json y Enviarlo vía POST
Replies: 10
Views: 2193

Re: Preload data for using Xbrouwe EditSource(.T.)

... Here I want based on the current colomn to put the Seek data in that field /* if oBrw:oCol() = 2 oRec:SetDefault( "naam_1", oBrw:cSeek ) elseif oBrw:oCol() = 3 oRec:SetDefault( "straat", oBrw:cSeek ) oRec:SetDefault( oBrw:SelectedCol():cExpr, oBrw:cSeek )  It ...
by nageswaragunupudi
Thu May 02, 2019 2:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Preload data for using Xbrouwe EditSource(.T.)
Replies: 11
Views: 1418

Recall records with FW_ArrayToDBF

... cSettore:=Iif(!empty( aSettori[nY,nX]),aSettori[nY,nX],"") cDesc:=aElementi[n][4] lactive:= TRUE else cDesc:=aElementi[n][4] ENDIF elseif aData[nY,nX] =="X" cDesc:="spazio vuoto" Endif next n AaDD( aTempDbf,{nCamera,nRow,nCol,cElemento,cDesc,,strzero(recno(),5),cSettore,lActive}) ...
by Silvio.Falconi
Tue Feb 12, 2019 9:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Recall records with FW_ArrayToDBF
Replies: 3
Views: 527

Re: founding a percentage

... you should do something like this: FUNCTION FinalCost( nQtdUnits, nUnitValue ) LOCAL nFinalCost IF nQtdUnits = 1 nFinalCost := nUnitValue - 2 ELSEIF nQtdUnits = 2 nFinalCost := ( nUnitValue * nQtdUnits ) - 5 ELSE nFinalCost := ( nUnitValue * nQtdUnits ) - ( ( nQtdUnits - 2 ) * 5 ) ENDIF RETURN ...
by ADutheil
Wed Jan 30, 2019 11:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: founding a percentage - Resolved !!!
Replies: 5
Views: 917

Re: Qué es lo erróneo?

... 2 - tomado del manuel de xHarbour The #if..#elif..#else..#endif directives are used for conditional compilation. They work analogous to the IF..ELSEIF..ELSE..ENDIF statements, but are resolved by the preprocessor, rather than the compiler. In contrast to the #ifdef and #ifndef directives, which ...
by FranciscoA
Tue Jan 15, 2019 5:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Qué es lo erróneo?
Replies: 9
Views: 2015

Re: calculate days

... dEnd, cTimeStart, cTimeEnd) LOCAL nTotalSec, nCtr, nConstant, nTemp, aRetVal[4,2] IF ! ( VALTYPE(dStart) $ 'DC' ) dStart := DATE() ELSEIF VALTYPE(dStart) == 'C' cTimeStart := dStart dStart := DATE() ENDIF IF ! ( VALTYPE(dEnd) $ 'DC' ) dEnd := DATE() ELSEIF VALTYPE(dEnd) == 'C' cTimeEnd ...
by MGA
Wed Jan 09, 2019 8:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculate days
Replies: 7
Views: 1191
PreviousNext

Return to advanced search