xBrowse small sample

xBrowse small sample

Postby Armando » Sat Sep 17, 2011 4: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
User avatar
Armando
 
Posts: 3218
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: xBrowse small sample

Postby Bayron » Sat Sep 17, 2011 4:18 pm

Hi Armando,

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

Code: Select all  Expand view
//#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
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: xBrowse small sample

Postby Armando » Sat Sep 17, 2011 4: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
User avatar
Armando
 
Posts: 3218
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Marc Venken, Silvio.Falconi and 105 guests