Solved

Can a MAKELANGID script be created using VB Script?

Posted on 2013-06-26
3
362 Views
Last Modified: 2013-06-27
How would this code be converted into a VB Script?

Public Const LANG_KAZAK                       As Integer = &H3F
Public Const LANG_RUSSIAN                     As Integer = &H19
Public Const LANG_ENGLISH                     As Integer = &H9
Public Const SUBLANG_ENGLISH_US               As Integer = &H1     ' // English (USA)

Public Function MAKELANGID (ByVal usPrimaryLanguage As Integer, ByVal usSubLanguage _
            As Integer) As Long
      MAKELANGID = (usSubLanguage * 1024) Or usPrimaryLanguage
End Function
0
Comment
Question by:tconingford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39281730
I'm only guessing about the function.  

LANG_KAZAK           =63'            As Integer = &H3F 
LANG_RUSSIAN         =25'            As Integer = &H19 
LANG_ENGLISH         =9'            As Integer = &H9 
SUBLANG_ENGLISH_US   =1'            As Integer = &H1     ' // English (USA)

'Submit as x = MAKELANGID(1,"") or x = MAKELANGID("",1)    
Function MAKELANGID (usPrimaryLanguage,usSubLanguage)
      if  usPrimaryLanguage<>"" then
      	MAKELANGID = usPrimaryLanguage
      	else
      	MAKELANGID = (cdbl(usSubLanguage) * 1024)
      end if 
End Function

Open in new window

0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39282712
I'm glad it worked out.  thanks for the points!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question