Making Descend() available.

Making Descend() available.

Postby xProgrammer » Thu Jan 21, 2010 1:28 am

I am writing code that builds table structures and indexes (and if desired populates them with data) from xml files. The code failed when the key expression included the Descend() function giving the following message:

Error BASE/1001 Undefined function: DESCEND

I got around the problem (after some heartache) by including the following line of code:

str_Rubbish := Descend( "Rubbish" )

So clearly its a question of what the linker includes. Now clearly what I was writing isn't "normal" programming (if there was such a thing) but it does raise questions as to what functions are or are not available if they are not called specifically in the program but maybe used in a codeblock or macro and what is a neater way to get the linker to include them than insert dummy lines of code into one's program. Up until now I had thought that all standard function calls were available regardless and that was part of the reason why xHarbour programs are so large.

xProgrammer
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Re: Making Descend() available.

Postby frose » Thu Jan 21, 2010 7:17 am

Tell the compiler that you need DESCEND with

REQUEST DESCEND

See also: viewtopic.php?f=6&t=17850
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: Making Descend() available.

Postby xProgrammer » Thu Jan 21, 2010 9:17 pm

Thanks, that's a lot neater.

xProgrammer
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia


Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 5 guests