Re: Problem with GUI4CLI 19_35
"peejayay" <[email protected]>
| Newsgroups | gmane.comp.windows.gui4cli |
|---|---|
| Message-ID | <[email protected]> |
Thanks Fred, Sorry I missed that thread, but I think it is good that the developers know that it used to work in 19_30, so they should be able to find the fix easier. I managed to solve it a different way in the meantime by reading a line out at a time until I find the one I want. It is not so elegant, but it is a small configuration file so there is not much overhead. Thanks again, peejayay --- In [email protected], "fredfjord@..." <fredfjord@...> wrote: > > Hi, > > I did not test it yet but it could be related to what i had in this message: > http://tech.groups.yahoo.com/group/gui4cli/message/5478 > > Fred. > > > --- In [email protected], "peejayay" <thepauladams@> wrote: > > > > 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/