Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
#include by symbol #480867
07/20/20 12:03
07/20/20 12:03
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

is a possible this construct?

#include strf("to%s.h",strx(Asset,"/",""))

thanks Milan

Re: #include by symbol [Re: Grat] #480868
07/20/20 12:49
07/20/20 12:49
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
You cannot run a function in the preprocessor because the function is not available at compile time. That's very illegal.

Re: #include by symbol [Re: Grat] #480870
07/21/20 05:37
07/21/20 05:37
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Thanks. I trying other - read param from ini file. But not working this:

[ini file]
cSystem = "AlfaFF_01_"

[zorro script - OK]
cSystem = strtext(setup,"cSystem","WRONG");
printf("\n%s",cSystem); // OK, show the value from INI file

[zorro script - NOT OK]
void run(){
loadIniValue();
Script = cSystem; // this not "AlfaFF_01_
....
}
My question, is a possible use the "Script" in the variable?

Quote

Test: betaGen EUR/USD 2020
Assets Assets4
Error 062: Can't open EURUSD_EURUSD.c (rt:2)
Error 044: Data\EURUSD_EURUSD.c not trained
Error 047: No bars to plot


Error 62 - is correct, because data is under name AlfaFF_01__EURUSD.c not the EURUSD_EURUSD.c
Don't use the Script value - may be must be correct during the compilation?


Last edited by Grat; 07/21/20 05:42.
Re: #include by symbol [Re: Grat] #480872
07/21/20 05:57
07/21/20 05:57
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
You can set the Script variable, but with a normal string, not with a temporary string.

Re: #include by symbol [Re: Grat] #480874
07/21/20 06:13
07/21/20 06:13
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Thanks, work perfect. I every time forget the temporary string laugh

Last edited by Grat; 07/21/20 06:18.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1