[jawsscripts] Re: Reading or writing entries in external ini files?

What you have to do is put an integer in as the third parameter, not a string. Then that is the default integer that the function returns if it fails to find an integer in your file.

 hth

Martin


----- Original Message ----- From: "Jeet" <LoveForAll@xxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, February 11, 2008 12:45 PM
Subject: [jawsscripts] Re: Reading or writing entries in external ini files?


true, but What I do?
I tried converting string to int as well, No success!
--
Contact:
Direct-cell: +919213153776
Skype:
Jeet.delhi
"The Scourge Of Authoritarianism Is Intellectualism."


Quoting Martin Slack <m.g.slack@xxxxxxxxxxxx>:

Hi Jeet,

  In the FSDN, parameter three of IniReadInteger has to be an
integer, and
you have it as a string.  You also have parameter four as in rather
than
ini, which is the path to your file.

  hth

Martin


----- Original Message ----- From: "Jeet" <LoveForAll@xxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, February 11, 2008 8:42 AM
Subject: [jawsscripts] Reading or writing entries in external ini
files?


> Hello friends, the folowing function is not compiled,
> I am trying to read the entries from an external ini file.
> code:
> Globals
> String Name,
> String Ini
> Void Function AutostartEvent ()
> Let Name = GetAppFilePath ()
> Let name = stringChopRight (Name, 3)
> Let Ini = Name+"Ini"
>
> EndFunction
> ;Saystring is used to debug.
> Script ToggleEq ()
> If IniReadInteger ("1by1", "Eq_Enable", "0", ini) ==1 then
> SayString ("Eq Disable")
> TypeCurrentScriptKey ()
> Else
> SayString ("Eq enabled")
> TypeCurrentScriptKey ()
> EndIf
> EndScript
> it says:
> the ini parameter should be of type int,
> I tried it as well, no success!
> -- > Contact:
> Direct-cell: +919213153776
> Skype:
> Jeet.delhi
> "The Scourge Of Authoritarianism Is Intellectualism."
>
>
----------------------------------------------------------------------
> Get a free email address with REAL anti-spam protection.
> http://www.bluebottle.com/tag/1
>
> __________
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>

__________
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com/tag/4

__________
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts



__________ 
View the list's information and change your settings at http://www.freelists.org/list/jawsscripts

Other related posts: