Is it possible to index the first part of a memo field ? I'd like to build an index based on the first 60 characters of the memo, regardless of how long it is actually.
Tim
function test()
FIELD CODE
USE C:\FWH\SAMPLES\PROCESS NEW EXCLUSIVE VIA "DBFCDX"
INDEX ON PADR(CODE,20) TAG CODEX
CLOSE DATA
USE C:\FWH\SAMPLES\PROCESS
SET ORDER TO TAG CODEX
? ORDKEY() // --> "PADR(CODE,20)"
XBROWSER DBSTRUCT()
return nil
Class TCustomer from TData
Method Save()
Endclass
Method Save() Class TCustomer
::notes60= left( ::notes, 60 )
Return super:save()
TimStone wrote:I'm using Advantage Database Server ... won't work with it. The functions are not supported.
James, for this task it might be easier to simply add a field to a database
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 53 guests