Guest tripzer Posted April 29, 2004 Posted April 29, 2004 (edited) Hi, In Windows XP the message box pops up with the requested key. In Windows 9x the message box pops up with a 0. This worked around v3 beta 68 or so. What can I do to make this work with 101-102, in Windows 98? ( the.ini file ) [states] setone=California -( I need to get this code to work in Windows 98 )- $imgIni1 = IniRead ( @SCRIPTDIR & "\the.ini" , "states" , "setone" , "0" ) msgbox(0 , "$imgIni1" , $imgIni1 ) Edited April 29, 2004 by tripzer
Guest tripzer Posted April 29, 2004 Posted April 29, 2004 Still ok in 100 (NT4) -( I need to get this code to work in Windows 98 )-
Administrators Jon Posted April 29, 2004 Administrators Posted April 29, 2004 (edited) Works fine here under 98. Where is the ini file stored? Edited April 29, 2004 by Jon
Guest tripzer Posted April 30, 2004 Posted April 30, 2004 Works fine here under 98. Where is the ini file stored?in the @SCRIPTDIR ;-)it's in the script directory.it works fine in windows XPit returns a 0 in the msgbox under windows 98/SE/MEi've tried to run it like this too:$imgIni1 = IniRead ( "the.ini" , "states" , "setone" , "0" )in windows xp the msgbox shows Californiain windows 9x the msgbox shows 0
Valik Posted April 30, 2004 Posted April 30, 2004 Try writing to the file on 98 and see what happens.
Guest tripzer Posted April 30, 2004 Posted April 30, 2004 Try writing to the file on 98 and see what happens. (( see... you say something simple and i figure it out ))ok... figured it out. (-) doesn't work (+) works @cr doesn't work in 98 FileWrite($fileINI, "[states]" & chr(10) ) + 98 | + XP FileWriteLine($fileINI, "[states]" ) + 98 | + XP FileWrite($fileINI, "[states]" & chr(10) ) + 98 | + XP FileWriteLine($fileINI, "[states]" & chr(10) ) + 98 | + XP FileWrite($fileINI, "[states]" & @cr ) - 98 | + XP FileWriteLine($fileINI, "[states]" & @cr ) - 98 | + XP FileWrite($fileINI, "[states]" & @lf ) + 98 | + XP FileWriteLine($fileINI, "[states]" & @lf ) + 98 | + XP FileWrite($fileINI, "[states]" & @crlf ) + 98 | + XP FileWriteLine($fileINI, "[states]" & @crlf ) + 98 | + XP
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now