Fiveweb - xbrowse

Fiveweb - xbrowse

Postby StefanHaupt » Mon Jun 10, 2013 2:54 pm

Hi friends,

does anyone has a sample how to browse a dbf with fiveweb ?

The following does not work, the browse is empty

Code: Select all  Expand view
#include "FiveWeb.ch"

function Main()

   local oDlg, oBtn, oBrw

  SET THEME TO "humanity"

   DEFINE DIALOG oDlg TITLE "Veranstaltungen" ;
      SIZE 719, 397.5

   @ 24, 8 BROWSE oBrw SIZE 729, 302 OF oDlg URL "zeus03/cgi-bin/Beleg.dbf"

   @ 355, 10 BUTTON oBtn PROMPT "OK"  SIZE 110, 40 OF oDlg

   ACTIVATE DIALOG oDlg

return nil
 
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Fiveweb - xbrowse

Postby ADutheil » Mon Jun 10, 2013 4:00 pm

I think you should drop URL "zeus03/cgi-bin/Beleg.dbf" and open the database with normal USE command.
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: Fiveweb - xbrowse

Postby StefanHaupt » Tue Jun 11, 2013 6:49 am

Andre,

that does not work, I get a runtime error

FiveWeb error

Application
===========
Path and name: E:\xampp\cgi-bin\browse.exe (32 bits)
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 06/11/13, 08:44:44
Error description: Error BASE/1081
Argument error: +
Args:
[ 1] = C
RNR RCODE BCODE KURSID START ENDE TAG ZEITRAUM NUTZER NUTZERTYP VORLESUNG KURSTYP MO MO_V MO_B DI DI_V DI_B MI MI_V MI_B DO DO_V DO_B FR FR_V FR_B SA SA_V SA_B KOSTEN SUMME
1111 1:1111 1:1111:12215217252
[ 2] = N 1

Stack Calls
===========
Called from TBROWSE:CREATEFROMCODE(201)
Called from TBROWSE:NEW(49)
Called from MAIN(20)


Code: Select all  Expand view
#include "FiveWeb.ch"

function Main()

   local oDlg, oBtn, oBrw

   REQUEST DBFCDX
   REQUEST DBFFPT
   REQUEST OrdKeyCount

   RDDSETDEFAULT ("DBFCDX")

  SET THEME TO "humanity"

  USE Beleg NEW ALIAS Beleg SHARED

   DEFINE DIALOG oDlg TITLE "Veranstaltungen" ;
      SIZE 719, 397.5

   @ 24, 8 BROWSE oBrw SIZE 729, 302 OF oDlg //URL "zeus03/cgi-bin/Beleg.dbf"

   @ 355, 10 BUTTON oBtn PROMPT "OK"  SIZE 110, 40 OF oDlg

   ACTIVATE DIALOG oDlg

   CLOSE ALL

return nil


Any other hints ?
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 115 guests