Page 1 of 2

FTP disk

Posted: Fri Oct 02, 2020 3:06 pm
by Natter
Hi,

When an FTP connection is made to a resource, I get a virtual disk. I need _ the files on this disk. However, the directory() function does not see this disk. What's the matter?

Re: FTP disk

Posted: Fri Oct 02, 2020 6:30 pm
by Otto
Hello,
which class do you use for the FTP connection?
Have you tested the ftpdir.prg from the FIVEWIN samples.
Best regards,
Otto

Re: FTP disk

Posted: Sat Oct 03, 2020 6:47 am
by Natter
I made an FTP connection using Total Commander, so the program on FW does not see the disk. Thank You, Otto !

Re: FTP disk

Posted: Sat Oct 03, 2020 7:45 am
by Otto
Hello Natter,
There is a tool called netDrive, where you can map a drive. I tested some time. But I decided to use other connections.
Look inside my videos for "ecrverbund".

https://www.modharbour.club/mh_videogallery/index.prg

Best regards,
Otto

Re: FTP disk

Posted: Sat Oct 03, 2020 12:38 pm
by Marc Venken
Otto,

In the gallery i see Autocode software. It seems to be yours since there is no recent link.... in the forum (also not in the contribution section)

Is it a commercial product ?

Re: FTP disk

Posted: Sat Oct 03, 2020 12:49 pm
by Marc Venken
Natter wrote:Hi,

When an FTP connection is made to a resource, I get a virtual disk. I need _ the files on this disk. However, the directory() function does not see this disk. What's the matter?
I think the code you can use is inside this topic ?

http://forums.fivetechsupport.com/viewt ... ink+to+ftp

Re: FTP disk

Posted: Sat Oct 03, 2020 3:46 pm
by Otto
Hello Marc,
no it is not commercial. I can give it to you.
Do you use resources or hardcoded dialogs?
It only suports hardcoded style.
Best regards,
Otto

Please download https://mybergland.com/fwforum/autocode.zip and extract the file.

Then run adc.EXE. You get a little window.
Make, for example a say command in your FIVEWIN source - press CTRL+C and click on the paste button.
Then autocode should open and you should see your command with all possible parameters.
Is this working?

Redefine is not supported as I do not use. But if someone needs, we could edit the acd5.ch file.

Then you have to press button copy the changes are then in clipboard. With Ctrl + V you copy the changes back to your source.

Re: FTP disk

Posted: Sat Oct 03, 2020 8:54 pm
by Marc Venken
Otto,

I don't use resources in this project.

The program is working, but i have to search more in the forum for samples of use.

It works with text like this ( the code in in autocode)

WITH OBJECT oRec:oBrw
:MakeTotals()
:RefreshFooters()
Eval( :bChange, oRec:oBrw )
END

But i see nothing with this :

@ 60,1500 GET oGet VAR cEan SIZE 150,26 PIXEL OF oDlg VALID lookupean ( cEan )

I have to see witch part of the code has to be selected for the code to work

BTW : I use multiEdit

Re: FTP disk

Posted: Sat Oct 03, 2020 10:20 pm
by Otto
Marc,
you have to select
@ 60,1500 GET oGet VAR cEan SIZE 150,26 PIXEL OF oDlg VALID lookupean ( cEan )
in your code. PRESS CTRL-C and then paste - button in AUTOCODE.
Image
Then you can make your changes in AUTOCODE.
PRESS button copy and CTRL-C in your editor.

Best regards,
Otto

Re: FTP disk

Posted: Sun Oct 04, 2020 8:37 am
by Marc Venken
The get is not working yet.
I also copy/paste into word in order to see that Multiedit is not the problem (copy is the + (plus) sign

Copy/paste from word also not working for the get, but working for the other code.

Also unzipped the file again... same result

The setup button has no effect (no reaction) but maybe this is correct ?

[img]
https://www.maveco.be/fivewin/autocode.png
[/img]

Re: FTP disk

Posted: Sun Oct 04, 2020 9:28 am
by Otto
Hello Marc,
Please see this video:

https://mybergland.com/fwforum/acget.mp4
Best regards,
Otto

Re: FTP disk

Posted: Sun Oct 04, 2020 9:59 am
by Marc Venken
I do it also like you, but no result...

How to make the vido like you did ? Than I can show it also

Here the content of adc dir.

Image

Re: FTP disk

Posted: Sun Oct 04, 2020 10:02 am
by Marc Venken
If I copy the code from your post above

@ 60,1500 GET oGet VAR cEan SIZE 150,26 PIXEL OF oDlg VALID lookupean ( cEan )

and 'Paste Code" also no effect.

Re: FTP disk

Posted: Sun Oct 04, 2020 10:04 am
by Marc Venken
Should I copy some of the files into the application dir maybe ?

Re: FTP disk

Posted: Sun Oct 04, 2020 10:26 am
by Otto
Marc, no it should work.
I can check with TV if you want
Best regards,
Otto