FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour help ftp
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
help ftp
Posted: Mon Feb 27, 2012 08:43 AM

Hi Antonio, excuse me.
I have not experience with FTP and I'm trying.
I have on my pc server on 192.168.2.95 and on "c:\prova" i have the file CUSTOMER.DBF
I have this PRG:

include "FiveWin.ch"

function Main()
local oInternet := TInternet():New()
local oFTP := TFTP():New( "192.168.2.95", oInternet, "usr", "psw" )
local aFiles
if ! Empty( oFTP:hFTP )
USE Customer
Browse()
USE
etc...

but I get this error:
Error description: (DOS Error 2) DBFNTX/1001 Open error: Customer.dbf

can you help me?
or
can you suggest me some other way to read the file CUSTOMER.DBF on Internet?
thanks

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: help ftp
Posted: Mon Feb 27, 2012 12:09 PM

Is customer.dbf in the same directory as your .EXE ? Re-reading your question it seems you want to open a remote dbf. Might be an opportunity to use the new HTML5 socket Antonio introduced a couple of month ago. If you can´t or don´t want I thing you´ll have to download the DBF before you can use it.

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: help ftp
Posted: Mon Feb 27, 2012 01:45 PM

I want to open remote dbf...
any example?

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: help ftp
Posted: Mon Feb 27, 2012 02:52 PM

I´m not aware of any direct way like use "remote/link/table.dbf". You might use hbnetio contrib. Have a look at harbour docs.

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: help ftp
Posted: Thu Mar 01, 2012 04:27 AM
LetoDB http://letodb.sourceforge.net/
Leto is a multiplatform database server or a database management system, chiefly intended for client programs, written on Harbour, be able to work with dbf/cdx files, located on a remote server.


Anser

Continue the discussion