upload and download routine

1 view
Skip to first unread message

skypirate

unread,
Nov 29, 2005, 6:24:26 PM11/29/05
to BRIZ
Hi,

How to upload and download the data from Dos to D3 andn D3 to Dos?

Rgds,

GVP

unread,
Nov 29, 2005, 9:04:01 PM11/29/05
to BRIZ
Hi
Many ways:
1 I/O
GP.FileXXXX set of PickBasic subroutines
See: http://briz.infotools.ru/html/033/prog6ieb.htm
Programer's Guide/Features/Working with the files of a
Workstation/Description in BRIZ.CHM
2 I/O
GP.IOFileCreate , GP.IOFILEDelete, GP.IOFILEFn , GP.IOFILESub -
PickBasic subroutines
See http://briz.infotools.ru/html/002/sysfile.htm
Programer's Guide/Features/Working with the files of a
Workstation/Object - IOFile in BRIZ.CHM

3 I/O
File Management Functions by CALL GP.FileSystemSub( SubStr ) and
CALL GP.FileSystemFn( SubStr, Ret )
See http://briz.infotools.ru/html/002/sysfile.htm
Programer's Guide/Features/Working with the files of a
Workstation/File System Management Functions in BRIZ.CHM

4 D3 > PC
setDirectOutput method of GUI objects
Example:
CALL GP.DlgObjectSub("MyDlg","LISTMONITORWHERE","SetDirectOutput
1,_NOEMPTY")
for I=0 to system(18)-1
crt I:CHAR(9):CHAR(13):
next i
CALL GP.DlgObjectSub("MyDlg","LISTMONITORWHERE","SetDirectOutput
0")

5 D3 > PC
StartCapture and StopCapture system method
Example from PEHELP:
CALL GP.SystemSub("StartCapture C:\myfile")
CRT tmpout
CALL GP.SystemSub("StopCapture")


Regards,

Grigory

dennis bartlett

unread,
Sep 23, 2005, 2:42:14 AM9/23/05
to skypirate, BRIZ
easiest way is to open the dos file from within D3

open "c:/my documents/whatever.txt" to OS_FILE then
read ForeignData from OS_FILE, {dos file name} then
lines = dcount(ForeignData, char(10))
for line = 1 to lines
nextLine = ForeignData<line>
...
next line
end
end

Alfred Lee

unread,
Nov 30, 2005, 2:05:06 AM11/30/05
to den...@freshmarksystems.co.za, skypirate, BRIZ
Dennis,

This is not the way I want. User will upload the data from their PC.

Rgds,

GVP

unread,
Nov 30, 2005, 3:01:36 AM11/30/05
to BRIZ
Hello Alfred,

Ways which I have described above, are intended for work with PC. Speed
is comparable to speed of a network.
You can see as they work in the following programs:
ADM.PRG - PickFiles tab "Copy items ...PC" mode
PEHELP - menu Tools/Copy all HTML files to PC (to copy > 2000
files)

Regards,
Grigory

Reply all
Reply to author
Forward
0 new messages