There is a FW lookup function introduced, but can't find it anymore ? Seen it ?
Now I try this (works for returning 1 field : Code )
XBROWSER "acties" TITLE "Selecteer de campagne" SETUP ( oBrw:cHeaders := { "Code", "Lijst","Titel" } ) SELECT cData := oBrw:code:Value
But I want more field as data to return (Code, Lijst, Titel)
XBROWSER "acties" TITLE "Selecteer de campagne" SETUP ( oBrw:cHeaders := { "Code", "Lijst","Titel" } ) SELECT aResult := oBrw
This is giving me all data, but inside is a lot of data from Xbrowse and have to figer out where the data is.
FW Lookup function (where to find)
- Marc Venken
- Posts: 727
- Joined: Tue Jun 14, 2016 7:51 am
FW Lookup function (where to find)
Marc Venken
Using: FWH 20.08 with Harbour
Using: FWH 20.08 with Harbour
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: FW Lookup function (where to find)
perhaps on yunus.prg
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- Marc Venken
- Posts: 727
- Joined: Tue Jun 14, 2016 7:51 am
Re: FW Lookup function (where to find)
It is
FW_DBFLOOKUP()
FW_DBFLOOKUP()
Marc Venken
Using: FWH 20.08 with Harbour
Using: FWH 20.08 with Harbour
- Marc Venken
- Posts: 727
- Joined: Tue Jun 14, 2016 7:51 am
Re: FW Lookup function (where to find)
With this code, not working because multi dim. arrays are not easy for me, I want to find all values of the selected record
Result shoud be the values of the folowing fields...
aData[1,1] = Code .or. aData[1] = code
aData[1,2] = Naam
..... rest of all the fieldnames = Value
Result shoud be the values of the folowing fields...
aData[1,1] = Code .or. aData[1] = code
aData[1,2] = Naam
..... rest of all the fieldnames = Value
Code: Select all
function Testobj()
local cText,oXmlDoc,oXmlIter,oTagActual
local nDepth, nDone:=0, cData:=""
local cVeld:="", aData:={}, aResult:={}
use acties
XBROWSER "acties" TITLE "Selecteer de campagne" SETUP ( oBrw:cHeaders := { "Code", "Lijst","Titel" } ) SELECT aResult := oBrw
xbrowse(aResult)
aNew := ArrTranspose( aResult )
//aData := aNew[ 4 ] Acols is on pos 4 in the object that I see (AResult)
// trying to look for the data
for i = 1 to len(aNew)
xbrowse(aNew[1,I])
next
close all
return
Marc Venken
Using: FWH 20.08 with Harbour
Using: FWH 20.08 with Harbour
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: FW Lookup function (where to find)
SELECT aResult := { oBrw:Code:Value, oBrw:Lijst:Value, oBrw:Titel:Value }
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Marc Venken
- Posts: 727
- Joined: Tue Jun 14, 2016 7:51 am
Re: FW Lookup function (where to find)
It can be so simple .... Thanks
Marc Venken
Using: FWH 20.08 with Harbour
Using: FWH 20.08 with Harbour