Search found 19 matches: nreturn

Return to advanced search

Re: Calculate number of day of year

I made another test

Function test()
Local ddata
Local nreturn

SET DATE ITALIAN
ddata:=date()

nReturn := dData- CTOD("01/01/"+RIGHT(DTOC(dData),2)) +1

RETURN nReturn

return 36577 ( today 21.02.2020)

why not run ok
by Silvio.Falconi
Fri Feb 21, 2020 12:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate number of day of year
Replies: 4
Views: 685

Re: DLL32 definition with double parameter type

Hi.
With the function changed like this, I have this result :

IMPORTO = L2BIN( NDBL2FLT( 0 ))
nReturn = AdsGetDouble(handle, "IMPORTO", @IMPORTO)
msginfo(NFLT2DBL(IMPORTO), str(nReturn))

Image
by Massimo Linossi
Tue Dec 19, 2017 12:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 definition with double parameter type
Replies: 23
Views: 3616

Re: DLL32 definition with double parameter type

Hi Enrico.
With this code I have this result :

IMPORTO = L2BIN( NDBL2FLT( 0 ))
nReturn = AdsGetDouble(handle, "IMPORTO", @IMPORTO)
msginfo(IMPORTO, str(nReturn))

Image
by Massimo Linossi
Tue Dec 19, 2017 8:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 definition with double parameter type
Replies: 23
Views: 3616

Re: DLL32 definition with double parameter type

Hi Enrico. With this code nReturn is 0 (correct) but IMPORTO is -343597384 IMPORTO = "0.00" nReturn = AdsGetDouble(handle, "IMP_FORN", @IMPORTO) msginfo(IMPORTO, str(nReturn)) IMPORTO = "0.00" is not correct. ...
by Enrico Maria Giordano
Mon Dec 18, 2017 12:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 definition with double parameter type
Replies: 23
Views: 3616

Re: DLL32 definition with double parameter type

Hi Enrico.
With this code nReturn is 0 (correct) but IMPORTO is -343597384

IMPORTO = "0.00"
nReturn = AdsGetDouble(handle, "IMP_FORN", @IMPORTO)
msginfo(IMPORTO, str(nReturn))
by Massimo Linossi
Mon Dec 18, 2017 11:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 definition with double parameter type
Replies: 23
Views: 3616

Re: funciones de FWH y Harbour en un archivo .txt

... HB_FReadAndSkip()->cLine HB_FReadLine(<nFileHandle>,@<cLine>,[<caEndOfLine>],[<nLineLength>])->nReturn HB_FReadLN()->cCurrentLine HB_FRecno()->nLineNumber HB_FSelect([<nNewArea>])->nOldArea HB_FSize(<cFileName>)->nFileSize ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 6389

Re: ADO RDD xHarbour

... in adordd.prg is called from tryadordd.prg: Code: MSGINFO("Relations in ADO SQL with record number are not allowed! See adordd.prg") nReturn := ADO_GOTO( aRelInfo[ UR_RI_CHILD ], uResult ) //-> uResult is type "C" The nRecord its always N type. Unless bookmarks are used ...
by AHF
Fri May 15, 2015 8:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RDD xHarbour
Replies: 1047
Views: 485340

Re: Compilar con xEdit 3.0, problema

... LibFlags= [Abbreviations] //-=//------------------------------------------------------------------------------\n| fn=FUNCTION |()\nRETURN if=IF |\nENDIF ife=IF |\nELSE\nENDIF me=METHOD |() CLASS\nRETURN pr=PROCEDURE |()\nRETURN to=// TODO: tom=/* TODO: |\n*/ tr=TRY |\nCATCH\nEND ...
by noe aburto
Wed Aug 21, 2013 1:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Compilar con xEdit 3.0, problema
Replies: 5
Views: 1835

Re: Bad Email Dreams ...

... the message hMessage := MimeComposeMessage(cFrom, cTo, cCC, cSubject, cMessage, , MIME_CHARSET_DEFAULT, MIME_ENCODING_DEFAULT ) send the message nReturn := SmtpSendMessage( hClient, cFrom, cTo, cExpFile, len(cMessageText), SMTP_MESSAGE_FILE ) My implementation of this library is highly customized ...
by Randal
Tue Jan 01, 2013 3:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bad Email Dreams ...
Replies: 53
Views: 20832

Re: Ayuda con xedit (solucionado)

... %FI LinkFlags=-Gn -Tpe StandardIcons=.F. LibFlags= [Abbreviations] if=IF |\nENDIF ife=IF |\nELSE\nENDIF wi=WITH OBJECT |\nEND me=METHOD |() CLASS\nRETURN fn=FUNCTION |()\nRETURN pr=PROCEDURE |()\nRETURN tr=TRY |\nCATCH\nEND to=// TODO: tom=/* TODO: |\n*/ //-=//------------------------------------------------------------------------------\n| ...
by Compuin
Thu Feb 09, 2012 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con xedit (solucionado)
Replies: 13
Views: 4371

Re: Zip functions - I'm in trouble

... * HB_ZIPTESTPK() * $CATEGORY$ * Zip Functions * $ONELINER$ * Test pkSpanned zip files * $SYNTAX$ * HB_ZIPTESTPK( <cFile> ) --> <nReturnCode> * $ARGUMENTS$ * <cFile> File to be tested. * $RETURNS$ * <nReturn> A code that tells if the current disk is the last of ...
by Enrico Maria Giordano
Sun Aug 30, 2009 1:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Zip functions - I'm in trouble
Replies: 1
Views: 929

xBrowse - update

... The code below is working but a 2. array seems a little time-consuming. FUNCTION Backuploeschen(oBrw) local I := 0 local aTemp := {} local nreturn := 0 For I := 1 to len(aTageSort) aadd( aTemp, { aTageSort[ I ][ 1 ] ,; aTageSort[ I ][ 2 ],; aTageSort[ I ][ 3 ],; aTageSort[ I ][ 4 ],; aTageSort[ ...
by Otto
Fri Jul 24, 2009 6:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse - update
Replies: 0
Views: 249

Re: Enviar comando a la impresora via tPrint

... FUNCTION Escape: Directly access a device driver Syntax: Escape( <hDC>, <nEscape>, <cInput>,[ <@cOutPut>] ) --> nReturn Parameters: <hDC> Device context <nEscape> Specifies the escape function to be performed. <cInput> Specifies the Input Data ...
by César E. Lozada
Wed Apr 15, 2009 1:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Enviar comando a la impresora via tPrint
Replies: 3
Views: 618

error al compilar winsock de smtp luis

... #ifdef __HARBOUR__ HARBOUR HB_FUN_WSAASYNCSELECT( PARAMS ) // ( nSocket, nHWnd, nMsg, nModes ) --> nReturn #else CLIPPER WSAASYNCSE( PARAMS ) // LECT( nSocket, nHWnd, nMsg, nModes ) --> nReturn #endif { _retni( WSAAsyncSelect( _parni( 1 ), ( HWND ...
by MANOLO
Thu Feb 19, 2009 7:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: error al compilar winsock de smtp luis
Replies: 2
Views: 883

PRAGMA

... FWH. Our need is to call a C function in a DLL. The problem we encounter is the Data Type LPLONG is not supported in FWH. So, the following call: nReturn := pp_lfopen( 'test.lf', LFOPEN_NOCACHE, LF_FILE, 'password', nLFhandle ) With the following DLL: DLL32 Function pp_lfopen( filename As LPSTR, ...
by TimStone
Sat Jan 26, 2008 5:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 problem
Replies: 8
Views: 1936
Next

Return to advanced search