Search found 63 matches: udf

Return to advanced search

Re: simulate unknown Function of UDF in IndexKey()

Przemek solution using the Harbour error handler: FUNCTION Main()   LOCAL cFuncName   cFuncName := "SOME_FUNC"   UDF_DEFFUN( cFuncName, @MY_FUNC() )          // add redirection   ? &cFuncName( ...
by Antonio Linares
Sun May 14, 2023 7:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

hi Antonio,

thx for go.bat
now it work :D
by Jimmy
Tue May 09, 2023 8:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

Dear Jimmy,

I use this go.bat
Code: Select all  Expand view
set path=c:\bcc7\bin
c:\harbour\bin\win\bcc\hbmk2.exe create.prg -cflag=-D_HB_API_INTERNAL_
create
by Antonio Linares
Mon May 08, 2023 7:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

hi Antonio, To build it: hbmk2.exe create.prg -cflag=-D_HB_API_INTERNAL_ i try to use 1st Sample using set FWDIR=c:\fwhset fwh=c:\fwhset HBDIR=c:\harbourset hdirl=%hdir%\lib\win\bccset bcdir=c:\bcc7c:\Harbour\bin\hbmk2.exe %1 -cflag=-D_HB_API_INTERNAL_del %1.mapdel %1.tdsdel %1.objdel %1.cdel %1.ppo...
by Jimmy
Mon May 08, 2023 12:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

Using hashes from low level to support multiple codeblocks :-D Remember to build it this way: hbmk2.exe create.prg -cflag=-D_HB_API_INTERNAL_ function Main()   hb_CreateFunction( "xyz", { || QOut( "from XYZ()" ) } )   hb_CreateFunction( "...
by Antonio Linares
Sat May 06, 2023 7:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

Enhanced version supporting n parameters: We have to solve where to store the codeblocks, or next call to hb_CreateFunction() will overwrite the previous one. function Main()   hb_CreateFunction( "xyz", { | a, b, c | QOut( c ) } )   ? hb_IsFunction( &q...
by Antonio Linares
Fri May 05, 2023 11:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

First prototype to create a function at runtime at assign a codeblock to it: 1. As we are using a static PHB_ITEM pCodeBlock, next call to CreateFunction() will overwrite it, so we need to find a solution for this. 2. We could enhance CreateFunction() to allow parameters: CreateFunction( cFunctionNa...
by Antonio Linares
Fri May 05, 2023 10:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

I guess the next challenge would be to assign a codeblock to such created function... :-)

Then we would have a way to assign functions to codebloks
by Antonio Linares
Fri May 05, 2023 9:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: simulate unknown Function of UDF in IndexKey()

Dear Jimmy, To build it: hbmk2.exe create.prg -cflag=-D_HB_API_INTERNAL_ create.prg function Main()   CreateFunction( "xyz" )   ? HB_IsFunction( "xyz" )   &( "xyz()" )   ? "ok"return nil function Dummy()    ? "i...
by Antonio Linares
Fri May 05, 2023 8:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

simulate unknown Function of UDF in IndexKey()

hi, when Index have a UDF in Indexkey() it will crash when open Index and don´t have that missing Function Question : how can i get "Name" of missing Function when use   RECOVER oError i will get oError:description, oError:operation, ...
by Jimmy
Fri May 05, 2023 4:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: simulate unknown Function of UDF in IndexKey()
Replies: 9
Views: 694

Re: Quisiera empezar a probar LetoDB

Hola, Hola José Vicente, rescato este viejo post para preguntarte qué tal te fue con LetoDb. Indagando he visto un usuario en GitHub que lo mantiene bastante actualizado : https://github.com/elchs/LetoDBf Gracias, Esta és la mejor version que hay, pero piensa en bajarte la última version 3.2...
by Carles
Fri Feb 01, 2019 12:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Quisiera empezar a probar LetoDB
Replies: 6
Views: 1299

Re: Automatic xbrowse refresh

You have also setidleactin({||UDF()})

TestIdle.prg
by Jack
Sat Oct 20, 2018 4:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Automatic xbrowse refresh
Replies: 5
Views: 1347

Re: multiple defintions, forst defined here

... * * * * * * * * * * * * * * * * * * * THIS IS THE MAIN EVENT PROCESSING FUNCTION AND PREVAILS WHEN EVER NO OTHER * FUNCTION HAS ITS EVENT HANDLING UDF ON THE TOP OF THE EVENT HANDLER STACK * WHICH IS LOADED BY ADDHANDLER() AND UNLOADED AUTOMATICALLY WHENEVER A CALL * TO DESTROYWINDOW() IS MADE ...
by lmheimendinger
Mon Dec 05, 2016 3:52 pm
 
Forum: FiveWin for CA-Clipper
Topic: multiple defintions, forst defined here
Replies: 15
Views: 22009

Re: Nuevo ADORDD

... ADPSEUDOSEEK works now ok with fields type "T" 5) ADODUFINDEX if result of the index expression its numeric its considered as it was a UDF expression because we cant extract field len to build a find, filter or query expression because the eval result its the sum of all the numeric ...
by AHF
Mon Dec 07, 2015 12:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Nuevo ADORDD
Replies: 55
Views: 18333

Re: ADO RDD xHarbour

... ADPSEUDOSEEK works now ok with fields type "T" 5) ADODUFINDEX if result of the index expression its numeric its considered as it was a UDF expression because we cant extract field len to build a find, filter or query expression because the eval result its the sum of all the numeric ...
by AHF
Mon Dec 07, 2015 12:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RDD xHarbour
Replies: 1047
Views: 485340
Next

Return to advanced search