How have a value from Xbrowse with array

Post Reply
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

How have a value from Xbrowse with array

Post by Silvio »

to return a value from array I use

ON DBLCLICK Inser_Img( oBrw:aArrayData[oBrw:nArrayAt,1] )

BUT return only the record of the first column and not the record I selected : How I must make to have therecord selected ?

then

it return ".\bitmaps\test.bmp" How I can make to have all Path of this bitmap ?

sample c:\test\bitmaps\test.bmp ?

THANKS
Best Regards, Saludos

Falconi Silvio
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: How have a value from Xbrowse with array

Post by ukoenig »

Hello Silvio,

There are some Filefunctions in FWH

cFileNoPath( <cFullFileName> ) --> cFileName
Returns:
<cFileName> Just the filename specified inside the full filename

Path-Convert :
cFull := CURDRIVE() + ":\" + GETCURDIR() + "\" + cFileNoPath( ".\test\test.bmp" )
msgalert( cFull ) => c:\test\test.bmp

For full Path i use a Var inside my Applications :
--------------------------------------------------------
c_path := CURDRIVE() + ":\" + GETCURDIR()
DEFINE IMAGE oImage FILENAME c_path + "\BACKGRD.JPG"
Filename uses : c:\test\BACKGRD.JPG

Best Regards
Uwe :lol:
Last edited by ukoenig on Wed Jan 20, 2010 1:05 pm, edited 4 times in total.
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
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Re: How have a value from Xbrowse with array

Post by Detlef Hoefner »

Silvio,

try

Code: Select all

oBrw:aRow[ n ]
where n is the desired column.

hth,
Detlef
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: How have a value from Xbrowse with array

Post by nageswaragunupudi »

Code: Select all

? oBrw:aArrayData[ oBrw:nArrayAt, n ]
or 
? oBrw:aRow[ n ]
 
are the same.
Better is

Code: Select all

? oBrw:SelectedCol():Value   // to query and
oBrw:SelectedCol():Value := uNewValue // assign a new value
 
The last method works whatever is the data source ( array, rdd, rs, etc).
Regards

G. N. Rao.
Hyderabad, India
Post Reply