Enhanced version (memo fields display when editing), edited dates:
http://code.google.com/p/fivewin-contributions/downloads/detail?name=fivedbu_20120609.zip&can=2&q=
function View( oBrw, oWnd )
local cAlias := Alias()
//local cFileName := oBrw:aRow[ 2 ]
//local cExt := Lower( cFileExt( cFileName ) )
IF ( Alias() )->( FIELDTYPE( oBrw:nArrayAt ) ) = "C" .and. ;
LEN( ( cAlias )->( Fieldget( oBrw:nArrayAt ) ) ) > 7
cFileName := ALLTRIM(oBrw:aRow[ 2 ])
cExt := Lower( cFileExt( cFileName ) )
IF !EMPTY( cExt )
do case
case cExt == "bmp"
WinExec( "mspaint" + " " + cFileName )
case cExt == "txt"
WinExec( "notepad" + " " + cFileName )
otherwise
ShellExecute( oWnd:hWnd, "Open", cFileName )
endcase
ENDIF
ELSE
MsgAlert( "No valid File to load for Preview !", "File-Error")
ENDIF
return nil
as if to say that they were wrong the whole time, so let’s try something altogether new
Now Microsoft wants to take all the habits and workflows and new skill sets we’ve developed and toss them into the bin for this?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 90 guests