-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF_GetData() bug #4
Comments
You don't use TF_GetData() in a script on its own. TF_GetData is called by all other TF functions to test if a variable or a file has been passed on to a TF_... function. That particular line/error message is shown if a user makes a syntax error:
I can read/work with a file with one line containing "000000" without any problems. What function are you using and how are you calling it, if you post it I might spot a syntax error (below each TF command there is a short example in the readme.md |
TF_GetData() is called first in many user function. msg = msg = msg = IMHO, from such type of function I expected behavior like SubStr(). |
Sorry but only the last one gives an error message, the first two work fine here. Your second example should have created a file C:\users\desktop_copy.ini, it should be there. The last one tries to read a file "C:" which of course doesn't exist (there is no such file) so it gives an error message saying it can't read it. You can pass on a variable as a filename which is what you are doing here in the second and third example. So as far as I can see: no bugs and it works as intended. Edit: v3.7 (April 16, 2017)
|
TF_GetData(byref OW, byref Text, byref FileName) {
If (text = 0) ; v3.6
{
MsgBox, 48, TF Lib Error, % "Read Error:``npossible reason: perhaps you used ! vs ""!"" ?"
Some newbie try to use this lib, but failed.
His text contain only one line: "000000".
I dont know that you mean here, possibly you mean
text = ""
?The text was updated successfully, but these errors were encountered: