Errors, bugs, questions - page 2434
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How do I know the file name from the handle?
FileGetString is missing.
How do I know the file name from the handle?
FileGetString is missing.
I don't think you can, usually handles, descriptors and other descriptors are virtual tables of integers, which are bound by OS or program environment to specific physical events/drivers/windows...
I've recently started to work with halves using SB, it's pretty handy and here's a ready-made solution for your casehttps://www.mql5.com/ru/docs/standardlibrary/fileoperations/cfile
How do I know the file name from the handle?
FileGetString is missing.
I don't think you can, usually handles, descriptors and other descriptors are virtual tables of integers, which are bound by OS or program environment to specific physical events/drivers/windows...
I've been using file management with SB for a while now, it's pretty handy and here's a ready-made solution for your casehttps://www.mql5.com/ru/docs/standardlibrary/fileoperations/cfile
It's clear that you can save the file name. But still it looks strange that you can't do the basic things.
No way
It would be good if you could.
It is clear that it is possible to save the file name. But it still seems strange that you can't do the elementary thing.
I think you need to force yourself to use ready-made solutions, at least I am on this path, here in 5 minutes I have written OHLC to the file
when usingCFileTxt class,you don't need to think where to get the file properties - everything is available throughout the program execution
I think you need to force yourself to use ready-made solutions, at least I'm on this path, here's how I made an OHLC entry to a file in 5 minutes
You have done it.
Forum about trading, automated trading systems & strategies testing
Bugs, bugs, questions
fxsaber, 2019.04.17 14:00
Clearly you can save the file name. But it still looks strange that you can't do the elementary thing.
You have done it.
Yes I know, but you just have to try to understand the developers' ideology here - they have quite a few ready-made solutions in SB,
It is clear that it is possible to save the file name. But it still seems strange that you can't do the elementary thing.
And it would be good.
What for?
Yes I know, but here you just have to try to understand the developers' ideology - they have quite a lot of ready-made solutions in SB,
It's certainly understandable. But that's not what I was talking about.
Why?
I'm debugging someone else's code, which is transferring handles from some methods to other functions.
I want to unset a specific handle, which is now used in the stop line - what is the file? And it's really hard to do that.