Search found 27 matches: cnum

Return to advanced search

Re: add a number on Random

... un numero"; action OneNumb(oBtnNum, oSay,@aNatural ) ..... Function OneNumb(oCmb, oSay,aNatural ) local atemp := {} local nAt,nAp local cNum //check and del to aNatural the numbers are allready on alista For n=1 to Len(aLista) cNum:= alista[n] nAp:= AScan( aNatural, val(cNum) ) IF nAp>0 ...
by Silvio.Falconi
Sat Mar 26, 2022 10:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: add a number on Random
Replies: 8
Views: 451

Conversion from ca-clipper ( not found a variable)

... c10:= "091929394959697989" contacomb:= 1 do while (contacomb <= combinaz) c:= "C" + LTrim(Str(contacomb)) cnum:= LTrim(Trim(&c)) <----------------- give me error here not found c1 conta:= 1 do while (conta <= Len(cnum) / 2) num:= "N" ...
by Silvio.Falconi
Tue Mar 01, 2022 11:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion from ca-clipper ( not found a variable)
Replies: 30
Views: 4334

Re: Decimal detection

Nages, cNum := cNumToStr( nValue, .f., .f. ) Wow, one line, I like that! Less is more. I note that in my version of FWH 1805, it is not listed in the documentation, but the function is in version 1805. You might want to check ...
by James Bott
Mon Sep 27, 2021 10:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1162

Re: Decimal detection

Code: Select all  Expand view

cNum := Str( .... )
cTrim := If( "." $ cNum, RemRight( RemRight( cNum, "0" ), "." ), cNum )
 


OR
Simply use the FWH built-in function
Code: Select all  Expand view

cNum := cNumToStr( nValue, .f., .f. )
 

instead of using cNum := Str( nValue )
by nageswaragunupudi
Mon Sep 27, 2021 9:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decimal detection
Replies: 10
Views: 1162

Re: Marc : Conversion process and questions about it

I wonder if we can use this technique also for the mem variables ? During programming we define a lot of local variables local cNum:="", nTel:=0 ..... Maybe you also make a object out of it, so that ALL vars or at least those that are used othen on several places can be set ...
by Marc Venken
Tue Jan 05, 2021 9:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Marc : Conversion process and questions about it
Replies: 30
Views: 3480

Re: Controlar tamaño ventana cGetfile

... la ventana sigue igual. El código completo del archivo es este: #include "fivewin.ch" #define OFN_ENABLESIZING 0x00800000 function ANEXA(cnum, cnom, nLibro, dfecha, cCentro, cDoc, cPrio, cClasedoc) Local cRaiz:="\COMPARTIDO\REGSAT\WINSAT\DOCUMENTAL" LOCAL CarpetaSAT:=alltrim(cnum)+"-"+alltrim(cnom) ...
by Ramón J.
Wed Dec 30, 2020 2:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Controlar tamaño ventana cGetfile [SOLUCIONADO]
Replies: 13
Views: 974

Cómo llamar una función incluida en un oFld en otro prg

... incluidas en un oFld en otros prgs. Por ejemplo: @ 190, 25 BUTTON "Editar " OF oFld:aDialogs[ 2 ] SIZE 40,20 PIXEL ACTION editsoc(cnum, cdenom, nptasti, neuti, nRecnoSoc, obrwsoc) Dado que tengo muchos folders que a su vez tienen muchas funciones, me gustaría crear un prg por folder, ...
by Ramón J.
Wed Nov 11, 2020 9:52 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo llamar una función incluida en un oFld en otro prg
Replies: 4
Views: 708

Re: Tdata still Up to Date ?

... customer object, so you probably wouldn't have to do that seek. I just miss the point of using this instead of a function. Function printCustlist(cNum) Code for printing report Return NIL I also can say : printcustlist(Cust->CNo) One reason is database state as I just mentioned. Inheritance, ...
by James Bott
Thu Jun 01, 2017 3:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdata still Up to Date ?
Replies: 25
Views: 5121

Re: Tdata still Up to Date ?

... ) can be done everywhere without thinking of alias.. I just mis the point of using this instead of a function. Function printCustlist(cNum) Code for printing report Return NIL I also can say : printcustlist(Cust->CNo) I agree that with OOp everithing is located in the class Tcustomer, ...
by Marc Venken
Wed May 31, 2017 8:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tdata still Up to Date ?
Replies: 25
Views: 5121

Re: Abrir navegador dentro de un dialogo

... 7,1 ) Activate Dialog oDlg Center On Init aBtn[1]:Click() return Nil Static Function ps_Seek( aGet, oActiveX ) local i, abEval, cStreet, cNum, cCity, cCountry, cTemp local cHtml := MemoRead( "google\google.html" ) cStreet := GoogleOk( AllTrim( Eval(aGet[1]:bSetGet) ) ) cNum ...
by Claudio Leiva
Mon Mar 27, 2017 8:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Abrir navegador dentro de un dialogo
Replies: 9
Views: 2332

Re: USAR SUBST EN UNA VARIABLE EN FAST REPORT

Hola Jose Luis,

Por que no haces la conversión para str ANTES de pasar a Fastreport? mas o menos esto:

cNum_llamada:=str(num_llamada)

Y dentro de fastreport usa el CallHbFunc('SubStr', [cNUM_LLAMADA, 1, 1])

Prueba y me comentas
by Kleyber
Mon Jan 20, 2014 11:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: USAR SUBST EN UNA VARIABLE EN FAST REPORT
Replies: 4
Views: 728

Re: Amount to words

*-------------------------------------------------------------------------------* function fig2wrd( nNum, cCurr, cPaise ) local cNum := i2c( nNum ), cRet := '', cDec := '' cCurr := iif( cCurr = NIL, 'Rupees', cCurr ) + ' ' cPaise := iif( cPaise = NIL, 'Paise' , cPaise ) + ' ' if '.' $ ...
by compaqt
Sat Apr 06, 2013 9:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Amount to words
Replies: 4
Views: 1039

Re: concatenated sql query

Rick,

i tried
SELECT * FROM empleados WHERE calle like '%JUAN%' and numero like '%12%'
or
cCalle = 'JUAN'
nNum = STR(12,2)
SELECT * FROM empledos WHERE calle like "'%" + cCalle + "%'" and numero like"'%" +cNum + "%'"
and result is ok
regards
pak.o
by Francisco Horta
Tue Sep 13, 2011 9:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: concatenated sql query
Replies: 5
Views: 928

Re: Help with button

... below, the button does not skip ? If I remove skinbuttons(), its ok. #include "fivewin.ch" function main() Local oDlg Local oNum Local cNum skinbuttons() if (!file("TestNum.dbf")) tmpdbf:= {} AAdd(tmpdbf, {"Num", "C", 40, 0}) dbcreate("TestNum.dbf", ...
by richard-service
Thu Nov 26, 2009 1:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with button
Replies: 4
Views: 826

Help with button

... below, the button does not skip ? If I remove skinbuttons(), its ok. #include "fivewin.ch" function main() Local oDlg Local oNum Local cNum skinbuttons() if (!file("TestNum.dbf")) tmpdbf:= {} AAdd(tmpdbf, {"Num", "C", 40, 0}) dbcreate("TestNum.dbf", ...
by acwoo1
Thu Nov 26, 2009 1:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with button
Replies: 4
Views: 826
Next

Return to advanced search