Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, 7th_zorro, dr_panther), 1,297 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Export.c - error 062 due to "/" in assets name #458969
04/11/16 11:23
04/11/16 11:23
Joined: Apr 2016
Posts: 9
_
_kp Offline OP
Newbie
_kp  Offline OP
Newbie
_

Joined: Apr 2016
Posts: 9
Hello Community,

I was trying to export some of the assets' history. As I was using FXCM as data provider, names of the assets contained "/". Export.c script creates .csv files wihich names contain asset's name. Because win doesn't allow for names with "/" I was receiving 062 error (cannot access file).

FXCM is default data provider for Zorro, data exporting is pretty common activity and there are no topics concering abovementioned issue here in the forum, therefore I assume that I must have been doing something wrong.

Nevertheless, to solve the issue you need to remove "/" from the assets' names when creating FileName variable. It can be done with strxc, just add:
Code:
strcpy(FileName, strx(FileName, "/",""));


after line 12 in export.c

If anyone can show me how to make export.c work with data from FXCM concering currencies, without changing its code, I would be grateful.

Re: Export.c - error 062 due to "/" in assets name [Re: _kp] #458994
04/12/16 08:39
04/12/16 08:39
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
No, you're absolutely correct. The / must be stripped from the asset name before storing it.

Re: Export.c - error 062 due to "/" in assets name [Re: jcl] #459003
04/12/16 13:53
04/12/16 13:53
Joined: Apr 2016
Posts: 9
_
_kp Offline OP
Newbie
_kp  Offline OP
Newbie
_

Joined: Apr 2016
Posts: 9
Thanks jcl for the answer.
Btw. I really value your and Zorro team time & effort put into the tutorials & manual. Great quality and straightforward (yet very thought provoking) content!

Last edited by _kp; 04/12/16 13:56.

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1