Search found 90 matches: indexkey

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: 416

Re: XBROWSE Column Question

it work when have "only" FIELD Name but seems not when have Function "in" INDEXKEY() / Ordkey() so i "strip" all of String to get FIELD Name "only" I suggest this function, which can handle index key of any complexity. If more than ...
by nageswaragunupudi
Wed May 10, 2023 12:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 867

Re: XBROWSE Column Question

... the times, we do not have to write any special code. it work when have "only" FIELD Name but seems not when have Function "in" INDEXKEY() / Ordkey() so i "strip" all of String to get FIELD Name "only" --- more Question : how is the Syntax to use "Header ...
by Jimmy
Tue May 09, 2023 8:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 867

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: 416

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: 416

Re: XBROWSE Column Question

hi,

FUNCTION FindColumnHeader() is NOT for "increment" Seek, it is to place Cursor on Header which meet IndexKey()

i can´t find e.g. STRZERO, in RddIncrSeek(), of XBROWSE ... but it seems to work ,,, how can it work ... hm
by Jimmy
Mon May 08, 2023 3:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 867

Re: XBROWSE Column Question

what about Function in Indexkey() like STRZERO() :?:

Works
but fail when have Function(FIELD)

Does not fail. It works.
by nageswaragunupudi
Mon May 08, 2023 1:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 867

Re: XBROWSE Column Question

... INDEXNAME in the data oCol:cSortOrder, while initially building the browse. XBrowse uses this information to do AutoSort what about Function in Indexkey() like STRZERO() :?: it does work when have FIELD only but fail when have Function(FIELD), or :?:
by Jimmy
Mon May 08, 2023 12:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 867

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: 416

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: 416

Re: XBROWSE Column Question

p.s. what is better to use INDEXKEY() or OrdKey() :?:

OrdKey()
by nageswaragunupudi
Sat May 06, 2023 2:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 867

Re: XBROWSE Column Question

in this case this CODE will work where i use INDEXKEY() or OrdKey() to look which FIELD is used SET ORDER TO TAG "CITY"nCol := AScan( oBrw:aCols, { |oCol| oCol:cSortOrder == OrdSetFocus() } )? nColoCol := oBrw:aCols[ ...
by nageswaragunupudi
Sat May 06, 2023 2:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Column Question
Replies: 23
Views: 867

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: 416

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: 416

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: 416
Next

Return to advanced search