View Full Version : Ok, I give up! GetINI function
NewsArchive
09-08-2005, 08:34 AM
Hi all,
Ok, I give up<g>!
I'm trying to get the function GetINI to work but am having a problem.
If the ini entry that I requested is there, it returns the value as I
would expect. But if the entry is not in the ini file (file exist), it
keeps putting the variable name into the target variable regardless of
what I do with the "Default" field.
I have looked at the on-line help but that does not enlighten me any
as to what I am over-looking.
Any suggestions?
I am using SB5 Developer version - gold release.
Barton Whisler
Dir. Programming
Prosoft Inc.
NewsArchive
09-08-2005, 08:34 AM
Barton,
Could you please send me a small demo script (and the test .ini). I tested
this and it seems to work fine here. If the entry is not in the existing
INI file then my variable displays the Default value.
Thanks,
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
09-10-2005, 05:50 AM
I will try to put together something over the weekend and get it to
you early next week. Too many things to do today<g>.
Barton
NewsArchive
09-10-2005, 05:50 AM
Okay, thanks :)
Friedrich
NewsArchive
09-10-2005, 06:07 AM
Ok, I finally got it working as I expect. Turns out to be a number of
small things that was tripping me up in the debugger.
1. I assumed incorrectly that the highlight in the source window was
what was about to be executed. Instead it appears that it is what was
just executed (already done). So, I was one step off in my thinking.
2. The variable window does not seem to always refresh until it gets
focus especially with new user defined variables. I was step though
(with focus on source frame) and did not see change in variable until
I clicked on the variable window. Variables that already exist might
be refreshing immediately - did not pursue that.
3. The line that was actually causing problem was the line after the
GetINI which was a set variable using the convert "Long Filename"
operation. Still not sure why it was not correct, but after erasing it
and playing around, it is now working.
So, bottom line, for now I am good to go<g>.
Thanks!
Barton
Barton Whisler
Dir. Programming
Prosoft Inc
NewsArchive
09-10-2005, 06:08 AM
Thank you Barton.
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.