FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse small sample
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
xBrowse small sample
Posted: Sat Sep 17, 2011 04:10 PM

Hi Friends:

I'm looking for a small sample for xBrowse with edit cells and recordset.
Somebody can help me?

With best regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: xBrowse small sample
Posted: Sat Sep 17, 2011 04:18 PM
Hi Armando,

I think your best bet will be to download tDolphin of Daniel Garcia Gil, this is a small sample:

Code (fw): Select all Collapse
//#include "hbcompat.ch"
#include "tdolphin.ch"
#include "xbrowse.ch"
#include "fivewin.ch"

FUNCTION Main() 

   LOCAL oWnd 
   LOCAL oMenu
   LOCAL oServer
/*   
   MENU oMenu 2007
      MENUITEM "testing" ACTION DataBrowse( oServer, oWnd )
   ENDMENU
*/   
   SET CENTURY ON
   SET DATE FORMAT "dd/mm/yyyy"   
      
   //Activated Case sensitive
   D_SetCaseSensitive( .T. )
   Set_MyLang( "esp" )
   
   IF ( oServer := ConnectTo() ) == NIL
      RETURN NIL
   ENDIF
   
   DataBrowse( oServer, oWnd )
   
/*   DEFINE WINDOW oWnd TITLE "Testing Dolphin - Fivewin" MENU oMenu
   
   ACTIVATE WINDOW oWnd 
*/   
   oServer:End()
   
RETURN NIL

PROCEDURE DataBrowse( oServer, oWnd )

   LOCAL oQry 
   LOCAL oDlg
   LOCAL oBrw
   LOCAL oData, oCol
   
   
   oQry = oServer:Query( "SELECT * FROM alumnos ORDER BY apellidos ASC" )
   
   DEFINE DIALOG oDlg SIZE 700,300 OF oWnd

   @ 0, 0 XBROWSE oBrw 
   
   SetDolphin( oBrw, oQry )
      
   oBrw:CreateFromCode()
  
   oDlg:oClient = oBrw 
   
   ACTIVATE DIALOG oDlg CENTERED ON INIT oDlg:Resize()
   
   oQry:End()

RETURN 

#include "connto.prg"
#include "setbrw.prg"


There are more samples that may have what you are looking for....

http://tdolphin.blogspot.com
http://www.sitasoft.net/dolphin/files/tdolphin.zip

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: xBrowse small sample
Posted: Sat Sep 17, 2011 04:54 PM

Bayron:

Tanks so much but it's too late, my app has several PRGS with many Recordsets, anyway thanks for your suggestion.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero

Continue the discussion