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
How have a value from Xbrowse with array
How have a value from Xbrowse with array
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
Re: How have a value from Xbrowse with array
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
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
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Detlef Hoefner
- Posts: 312
- Joined: Sat Oct 08, 2005 9:12 am
- Location: Germany
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: How have a value from Xbrowse with array
Code: Select all
? oBrw:aArrayData[ oBrw:nArrayAt, n ]
or
? oBrw:aRow[ n ]
Better is
Code: Select all
? oBrw:SelectedCol():Value // to query and
oBrw:SelectedCol():Value := uNewValue // assign a new value
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India