Thanks. I am able to build the exe now.
Yes, there is a problem.
How this linking affects the logic inside the fwh lib is puzzling.
Let me see.
G. N. Rao.
Hyderabad, India
Thanks. I am able to build the exe now.
Yes, there is a problem.
How this linking affects the logic inside the fwh lib is puzzling.
Let me see.
Ok, thank you!
Let us know if you need help or anything ![]()
#include "fivewin.ch"
function Main()
  local oCn, oRs
  local cSql, nAt := 0
  cSql  := "SELECT * FROM states AS st ORDER BY code LIMIT 5"
  HB_AtX( " ORDER BY | HAVING | LIMIT | GROUP ", cSql, .f., @nAt )
  ? nAt, cSql, SubStr( cSql, nAt )
Â
return nilOk, we are testing it right now, just a moment
Yes, you are right. The exe generated with HBMK2 is returning 0(Zero) to nAt.
We request the hbmk2 experts to please see the hbp script and advise corrections to resolve this issue.
Do you know where is HB_AtX() function ? which .lib ?
Thank you,
It's a really nice page!
cnavarro wrote:http://www.elektrosoft.it/tutorials/Harbour-Reference-Guide/harbour-complete-functions-list.htm
HB_AtX() is in hbrtl.lib.
HB_AtX() function is a regex function. While building with hbmk2 using the above script, some dummy function is being linked instead of the correct function.
It is possible to replace HB_AtX() in this particular case with a suitable FWH function like AAT() or FW_AT().
But we still do not know what other functions, particularly regex functions our FWH library will fail resulting in wrong behaviour. And you will all be complaining that it is a problem with our FWH library.
We can prove the functionality with buildh.bat.
I do not know hbmk2. You need to first consult experts and come out with a reliable hbp script. Till then, it is difficult for me to provide support if the application is built with hbmk2.
The caption "EditSource() problem" is misleading. There is no problem at all with EditSource. Please consider changing the title.
#include "fivewin.ch"
function Main()
local cSql, aMatch
cSql := "SELECT * FROM customer WHERE AGE BETWEEN 50 AND 60 OR STATE = 'NY'"
aMatch := hb_regex( "[a-z|0-9|_`]* between .* and ['|a-z|0-9|&|?|:]*", cSql, .f. )
if aMatch == nil
? "function returned nil. It should return array"
elseif Empty( aMatch )
? "function returns empty array"
else
? "result:", aMatch[ 1 ]
endif
return nilPlease try to remove hbwin and -mt from the hbp file and let us know what you get
hbmk2: Error: Referenced, missing, but unknown function(s): WIN_OLEERRORTEXT(),
WIN_OLEAUTO(), __OLEINVOKEMETHOD(), __OLEINVOKEPUT(), __OLEINVOKEGET(),
WIN_OLEERROR(), __OLEISDISP(), __OLECREATEOBJECT(), WIN_P2N(),
__OLEGETACTIVEOBJECT(), WAPI_MESSAGEBOX(), __OLEVARIANTNEW(),
WIN_OSVERSIONINFO(), WIN_OSISNT(), WIN_OSISNT351(), WIN_OSISNT4(),
WIN_OSIS2000ORUPPER(), WIN_OSIS2000(), WIN_OSISXP(),
WIN_OSISWINXPORUPPER(), WIN_OSIS2003(), WIN_OSISVISTA(),
WIN_OSISVISTAORUPPER(), WIN_OSIS7(), WIN_OSIS8(), WIN_OSIS9X(),
WIN_OSIS95(), WIN_OSIS98(), WIN_OSISME(), WIN_OSISTSCLIENT(),
WIN_OSNETREGOK(), WIN_OSNETVREDIROK(), WIN_ANSITOWIDE(),
WIN_WIDETOANSI(), WIN_AXINIT(), WAPI_CREATEWINDOWEX(),
WIN_AXGETCONTROL(), WAPI_OUTPUTDEBUGSTRING()