Jump to content

Recommended Posts

Guest tripzer
Posted (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 by tripzer
Guest tripzer
Posted

Still ok in 100 (NT4) :D

-( I need to get this code to work in Windows 98 )-
  • Administrators
Posted (edited)

Works fine here under 98. Where is the ini file stored?

Edited by Jon


 

Guest tripzer
Posted

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 XP

it returns a 0 in the msgbox under windows 98/SE/ME

i've tried to run it like this too:

$imgIni1 = IniRead ( "the.ini" , "states" , "setone" , "0" )

in windows xp the msgbox shows California

in windows 9x the msgbox shows 0

Guest tripzer
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...