Problem with GUI4CLI 19_35
"peejayay" <[email protected]>
| Newsgroups | gmane.comp.windows.gui4cli |
|---|---|
| Message-ID | <[email protected]> |
With version 19_30, I had previously created an executable that as part of its task must read a line out of a configuration file. This worked fine until I had a to make a small change. In between my last release and this latest release, I had installed the 19_35 version. The part of code that had functioned previously but which no longer functions, is the part where I read a line out of a file after I have searched for a particular string. The code is as follows:
if $$file.valid = 1 // if successful
file SEARCH "\nexecutiontime="
file READ 1 LINES ExecutionTime
msgbox $ExecutionTime //added for debugging
file close CONF
...
endif
the conf file contains the following entries:
# Execution time e.g. executiontime=03:03,12:00,13:00
#executiontime=21:15
executiontime=11:34
The message box is always now empty. It seems now that the READ functionality does not work after a search (I have checked the $$file.position after doing the search and this is correct).
I do not want to go back to the old version unless absolutely necessary, but it is looking like I will have to.
If anyone can confirm this or point out what I have done wrong, that would be great.
peejayay
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/gui4cli/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/gui4cli/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/