Page 1 of 1 1
Topic Options
#184972 - 2008-01-31 02:19 PM Difference between KiXtart version 4.52 and 4.60.
a3aanw Offline
Just in Town

Registered: 2008-01-31
Posts: 3
Loc: Netherlands
euro sign in KiXtart 4.60 Chr(128)

I am trying to adjust the regional settings with a logon script. The following script part works fine in version 4.52 and will put the € (euro sign) in the registry.

$regkey = "HKEY_CURRENT_USER\Control Panel\International"
$DataType = "REG_SZ"
$entry = "sCurrency"
$Value = Chr(128)
$RC = WriteValue($regkey,$entry,$value,$DataType)

In KiXtart 4.60 it will put the ¬ character in the registry.

Is this a bug? Is there another way to print the euro sign in KiXtart 4.60?

Thanks in advance,


Adriaan Westra

Top
#184973 - 2008-01-31 02:28 PM Re: Difference between KiXtart version 4.52 and 4.60. [Re: a3aanw]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Hi and welcome to the board.

Isn't the euro sing 0128 instead of 128? 128 gives me Ç and 0128 gives me €.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#184974 - 2008-01-31 02:41 PM Re: Difference between KiXtart version 4.52 and 4.60. [Re: Mart]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
It returns the french C (with Cedille) in both cases (with my local codepage) ... Have you ever tried to just do this ?

 Code:
$regkey = "HKEY_CURRENT_USER\Control Panel\International"
$DataType = "REG_SZ"
$entry = "sCurrency"
$Value = "€"
$RC = WriteValue($regkey,$entry,$value,$DataType)


Edited by Jochen (2008-01-31 02:42 PM)
_________________________



Top
#184975 - 2008-01-31 02:44 PM Re: Difference between KiXtart version 4.52 and 4.60. [Re: Mart]
a3aanw Offline
Just in Town

Registered: 2008-01-31
Posts: 3
Loc: Netherlands
Both 128 and 0128 give me a ¬ in 4.60 but in 4.52 I get the € with both 128 and 0128.

Adriaan

Top
#184976 - 2008-01-31 02:47 PM Re: Difference between KiXtart version 4.52 and 4.60. [Re: a3aanw]
a3aanw Offline
Just in Town

Registered: 2008-01-31
Posts: 3
Loc: Netherlands
It returns the french C (with Cedille) in both cases (with my local codepage) ... Have you ever tried to just do this ?


Code:
$regkey = "HKEY_CURRENT_USER\Control Panel\International"
$DataType = "REG_SZ"
$entry = "sCurrency"
$Value = "€"
$RC = WriteValue($regkey,$entry,$value,$DataType)


Edited by Jochen ( 2 minutes 29 seconds ago)
_________________________
I cna ytpe 300 wrods pre mniuet!!

Kixforms forum.
Deutsches KiXtart/Kixforms forum

Top

This was the inital problem. The result was ¬. I then switched to using the Chr function and got more and more confused. I finally tried it with version 4.52 and it was working.

Adriaan

Top
#184977 - 2008-01-31 02:59 PM Re: Difference between KiXtart version 4.52 and 4.60. [Re: a3aanw]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I get (german locales), with ASCII-Mode set to on in any case a Ç [any case = "€" ? chr(128) and chr(0128), both with 4.60 and 4.52]

With ASCII set to OFF I get always a ?



Edited by Jochen (2008-01-31 03:02 PM)
Edit Reason: forgot to mention the versions
_________________________



Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1376 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.066 seconds in which 0.034 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org