Easy please Help
'Hi :wave:
'Write or copy this code to you vb6 form
'2 TextBox and 1 Command Button
Private Sub Command1_click()
Dim I as integer
Dim AscW_long as long
Text2.Text = ""
For I = 1 to Len (Text1.Text)
AscW_long = AscW ( mid(Text1.Text ,I ,1))
Text2.Text = Text2.Text & Ascw_long & " ,"
Next
End sub
'Now all i need is that u write in your written language in your language
'And send my your country name
' And Text2 Text
'For Example :
'Text1.Text = "English"
'Text2.Text =69,100,103,108,105,115,104
'And my country is = USA
'Thank you all :)
[725 byte] By [
imosha] at [2007-11-11 6:50:01]

# 1 Re: Easy please Help
example Text when u Select fonts
all i need is that you write in Text1 your written language in your language
and send me the Text2 Text (the Numbers)
and your state Name
I dont Now Arabic And Greek and Thai and ...
so i cant write in these languages
so i need Help
imosha at 2007-11-11 17:27:46 >

# 2 Re: Easy please Help
That makes no sense at all!
# 3 Re: Easy please Help
For example, imosha wants me to write "italiano" in the text box and see how translates in numbers:
105 ,116 ,97 ,108 ,105 ,97 ,110 ,111
Country: Italy (Italia)
Marco
mstraf at 2007-11-11 17:29:53 >

# 4 Re: Easy please Help
Ah, that's easy.
For i = 1 To Len(Text1.Text)
text2.Text = text2.Text & Asc(Mid(Text1.Text, i, 1)) & ","
Next i
End Sub
# 5 Re: Easy please Help
For example, imosha wants me to write "italiano" in the text box and see how translates in numbers:
105 ,116 ,97 ,108 ,105 ,97 ,110 ,111
Country: Italy (Italia)
Marco
thanks but it's in English and i need Italiano
cool can u send it to me
imosha at 2007-11-11 17:31:57 >

# 6 Re: Easy please Help
you want the code in Italian? I can't help you there i'm afraid.
# 7 Re: Easy please Help
you want the code in Italian? I can't help you there i'm afraid.
he does not want the code in Italian from you
he wants the code for any language that is not English, and he is asking it from native speakers (from what reason, I do not know)
Marco
mstraf at 2007-11-11 17:34:00 >

# 8 Re: Easy please Help
thanks but it's in English and i need Italiano
cool can u send it to me
That is the code for "italiano": i=105, t=116,... o=111
Marco
mstraf at 2007-11-11 17:35:03 >

# 9 Re: Easy please Help
I'll get my coat!
# 10 Re: Easy please Help
he does not want the code in Italian from you
he wants the code for any language that is not English, and he is asking it from native speakers (from what reason, I do not know)
Marco
private sub command2_click()
dim i as integer
dim x as integer
dim asc_long as long
text1.text=""
text1.font.charset= 177
text3.text= "1506 1489 1512 1497 1514 "
for i =1 to len(text3.text)
x=i
i= instr(i,text3.text," ",vbbinaryCompare)
asc_long=val(mid(text3.text,x,i-1)
text1.text=text1.text & ascW$(asc_long)
next
' Text1.text= " עיבר'ת"
imosha at 2007-11-11 17:37:03 >

# 11 Re: Easy please Help
I'll get my coat!
is it already that cold out there <|:-{
Marco
mstraf at 2007-11-11 17:38:01 >

# 12 Re: Easy please Help
is it already that cold out there <|:-{
Marco
? where and no it's hot
imosha at 2007-11-11 17:38:59 >

# 13 Re: Easy please Help
is it already that cold out there <|:-{
Marco
u seem smart can u think where can find what im looking for
arabic in arabic
chinese in chinese
greek in greek
.
.
.
.
.
.
.
.
imosha at 2007-11-11 17:40:06 >

# 14 Re: Easy please Help
I was joking on Rich's post "I'll get my coat!" (that means something like "I am leaving now")
Marco
mstraf at 2007-11-11 17:41:00 >

# 15 Re: Easy please Help
You can use the GetLocaleInfo API, using LOCALE_SNATIVELANGNAME (to get the native name of the language)
Let me know if you need help with that
Marco
mstraf at 2007-11-11 17:42:01 >

# 16 Re: Easy please Help
I modified some code of mine that deals with the GetLocaleInfo API, just to display the native language.
Paste the code in a newly create exe, and use one of the LANG_ definitions.
Enjoy,
Marco
Option Explicit
Private Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long
Private Declare Function GetLocaleInfoW Lib "kernel32" (ByVal Locale As Long, ByVal LCType As Long, ByRef lpLCData As Integer, ByVal cchData As Long) As Long
Private Const LOCALE_ILANGUAGE = &H1 ' language id
Private Const LOCALE_SCOUNTRY = &H6 ' localized name of country
Private Const LOCALE_SLANGUAGE = &H2 ' localized name of language
Private Const LOCALE_SNATIVELANGNAME = &H4 ' native name of language
Private Const LANG_ARABIC = &H1
Private Const LANG_BULGARIAN = &H2
Private Const LANG_CHINESE = &H4
Private Const LANG_CROATIAN = &H1A
Private Const LANG_CZECH = &H5
Private Const LANG_DANISH = &H6
Private Const LANG_DUTCH = &H13
Private Const LANG_ENGLISH = &H9
Private Const LANG_FINNISH = &HB
Private Const LANG_FRENCH = &HC
Private Const LANG_GERMAN = &H7
Private Const LANG_GREEK = &H8
Private Const LANG_HUNGARIAN = &HE
Private Const LANG_ICELANDIC = &HF
Private Const LANG_ITALIAN = &H10
Private Const LANG_JAPANESE = &H11
Private Const LANG_KOREAN = &H12
Private Const LANG_NEUTRAL = &H0
Private Const LANG_NORWEGIAN = &H14
Private Const LANG_PORTUGUESE = &H16
Private Const LANG_ROMANIAN = &H18
Private Const LANG_RUSSIAN = &H19
Private Const LANG_SLOVAK = &H1B
Private Const LANG_SLOVENIAN = &H24
Private Const LANG_SPANISH = &HA
Private Const LANG_SWEDISH = &H1D
Private Const LANG_TURKISH = &H1F
Private Sub Form_Load()
Dim v As Long
Dim k As Long
k = LANG_GREEK
Dim c As String
c = Space(256)
v = GetLocaleInfo(k, LOCALE_SCOUNTRY, c, 256)
Dim kk() As Integer
ReDim kk(255)
v = GetLocaleInfoW(k, LOCALE_SNATIVELANGNAME, kk(0), 256)
Dim j As Long
Dim bs As String
For j = 0 To v
bs = bs & (kk(j)) & " "
Next
Debug.Print "> " & k, APIString(c), bs
Unload Me
End Sub
Private Property Get APIString(s As String) As String
Dim k As Long
k = InStr(1, s, Chr(0), vbTextCompare)
If k = 0 Then
APIString = s
Else
APIString = Left$(s, k)
End If
End Property
mstraf at 2007-11-11 17:43:05 >

