How call an image from oDbf ( tdatabase)

How call an image from oDbf ( tdatabase)

Postby Silvio.Falconi » Tue Mar 12, 2019 9:25 am

how call image on xbrowse from multiarray
I cannot use AddBitmap because I have bitmap on oTipClienti archive
and on xbrowse I have string oClienti:tipo

WITH OBJECT oBrwClienti:aCols[2]
:bStrData := { || oClienti:tipo }
END

I tried to call :bBmpData := { || CercaTipo(oClienti:Tipo) }

Code: Select all  Expand view
static Function CercaTipo(ctipo)
   local nRecno := oTipCli:RecNo()
   local nOrder := oTipCli:OrdNumber()
   local nArea  := Select()

 
   oTipCli:SetOrder(1)
   oTipCli:DbGoTop()

   if ! oTipCli:Seek( ctipo )
       oTipCli:GoTop()
    endif


   return oTipCli:imgcli



or load an array atipo( 2 size )

Code: Select all  Expand view
Functio cercatipo(atipo,cTipo)
Local nAt:= ascan(aTipo,{ |a| alltrim(a[ 1 ][1]) ==alltrim(ctipo) } )
return  atipo[nat][2]  //img


but not run ok
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6897
Joined: Thu Oct 18, 2012 7:17 pm

Re: How call an image from oDbf ( tdatabase)

Postby ukoenig » Wed Mar 13, 2019 11:38 am

Silvio,

maybe the solution You are looking for :?:

viewtopic.php?f=3&t=36888&p=220054#p220054

regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 23 guests