Forum Discussion

Innovation's avatar
Innovation
New Contributor
8 years ago

SetLocalInfo help needed

Hello,

 

i want to change (marked in the picture) the "UserDefaultLangID" but i can´t get it working.

 

 

 

I am able to change date and time but Windows gets buggy when i change the date to T. MMM JJJJ wich is not in the "Format: Englisch (USA)".

 

This is the script i´m using for changing the date and time.

 

procedure RegionalChangeS1;
var i:integer;
begin
//aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT,LANGID,i);
//SetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_LANGID, 'de');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTDATE,'TT/MM/JJJJ');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SLONGDATE,'TTTT, T. MMMM JJJJ');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME,'HH:mm');
SetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_ITIME,'hh:mm:ss');
//ShowMessage('i');
end;

pls help me change the "Format".

 

 

thanks

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    I am able to change date and time but Windows gets buggy when i change the date to T. MMM JJJJ wich is not in the "Format: Englisch (USA)

     

     

    Are you able to make this change manually?  TestComplete can put bad data in for you, but you'll get the same result as if you entered it on your own.  I think Windows would call that a feature.  :)