Changing character set -
Hi everybody,
I have the problem to display the correct charset on some controls. The following code is used to change the character set of each control in a form:
Code:
Public Sub ChangeCharSet(frmActForm As Form)
Dim objCtrl As Control
Dim lCharSetCode As Long
Dim fntDummy As StdFont
'get charset code of current language, i.e. 204 for 'cyrillic'
lCharSetCode = dbLNG.LangScriptIndex
'now setting font with new charset of each control
On Error Resume Next
For Each objCtrl In frmActForm
Set fntDummy = objCtrl.Font
fntDummy.Charset = lCharSetCode
Set objCtrl.Font = fntDummy
Next
On Error GoTo 0
End Sub
This code works correct under Win98, but under Win2000 some controls, i.e. Frame and ComboBox don't show the cyrillic characters, but some other controls, i.e. Label and CommandButton show the text correctly.
Has anybody an idea, why ?
What con I do to fix it ?
P.S. all text is ANSI not UNICODE, since neither VB-Controls nor DAO are supporting UNICODE
Changing '&' to '+' in an xml file -
Hi guys,
I was wondering how i would go about changing all occurences of the character '&' with a plus sign ('+') instead. This because i am downloading several xml files and storing the information at each node in a Database. Now because i am using .net compact framework 2 window
Help finding a string character. -
I want to be able to place a certain character as a caption in a label. However, i can not find this character in the Windows Character Character Map.
The common name for this character is the 'X Bar'. Which consists of an uppercase X with a horizontal line above it.
Any help in
need help with my project -
ok i need help with making my project read a text file but i want it to put the code into different text boxes
like it puts the [ACCOUNT] for it self and the text under it and [CHARACTER] for it self and its text for another text box and so on and i want to be able to edit it in the pr
Read 1 character from file -
Hi,
I have a script which reads some or all lines from an text (log) file
but I only need 1 character,
I am using a textstream object to skip the first 15 characters, and the next character is the one I need,
but as result I get the 16 th character and everything what comes af
Array List matching, please help -
Need help
I have two array
s1() as double
s2() as double
Example
s1() = [A, B, C, A, B, C]
s2() = [A, B, A, B, C]
Are there any function and code can help to find the extra character or miss character for the comparing of s1() and s2()
s1() and s2() are changing, and th
Character goes under when changing BG -
Ok, to increase frame rate, I split up my world into 2 pictures, first I blit my character to pic1 and when he gets past a point, he should be re-blited to pic2, but he just goes under. Why? Please help, as you can see I started learning VB backwords, DX first, then the GDI
changing the Character map -
Basically, what I am doing is breaking down a very simple programming language into a Mnemonic file. I have about 60 control characters that I am replacing and then breaking the file down into an englishized listing so that users can edit the results, and then recompile. Right now I
Overwrite character -
Hi,
Visual Basic
I have a text box of 1 character . I have entered a character.
Now I want to overwrite the charracter. How do I do it.
I dont want to use backspace ..... delete the character and then
agaian enter the character .
I want to overwrite it. ......... Is
problem with fstream's eof -
Hi everyone.
I am using code like this:
while(!ifs.eof())
cout << hex << ifs.get() << '\n';
The file that I am using has exactly 283,858 bytes (i.e. it is fairly large); however, the thing thinks the last character is character #21,018
RE: Changing a Filename -
I have been trying to locate some VBA code or help with simply changing a filename by replacing a specific character.
Let's say I have a filename:
_This-is-a-test.xls
How do I change or replace the underscore to "z-" ?
We use "z-" to acknowledge th
Please help me see my code what is the problem...It end out diffrent output.. -
Code:
Dim j As Long
Dim f As String
Dim r As String
Dim d As Long
Dim v As String
d = 50
For j = 1 To Len(Label9.Caption) Step 1 'calculate the label character length
If j < d Then ' if the character length less then
Remove leading space character -
Hi,
I'm changing an integer value to a string value but VB keeps putting a leading space (ascii 32) character in the variable.
e.g
Code:
Dim JobID As Integer
...
JobID = 0
JobID = str(JobID)
and the new string variable JobID now equals " JobID". How d
How to tell if string contains specific character -
Is there a function to tell if a string has a certain character in it.
I can use a loop to check character by character but is there an easier way??
I tried using instr but could not get it to work.
Thanks.
Replacing a Certain Character (resolved) -
Hello. I want to replace a very specific character with another
character, going by the number. This meaning, i want to replace
characters by which character they are.
Lets take the string "abcdefghijklmnopqrstuvwxyz". I want to be
able to take, say the fifth charact
Barcodes Screeeeeam !! -
ladies and gentlemen.
I have a horrid little problem that perhaps you may help me with.
I'm using a barcode font for an EAN128 barcode.
In this barcode is a field separator character that looks like two little crosses when scanned (++) its small and for the life of me I cannot
Reading a file a putting a character- simple aint it -
I wanna put a character right at the end of .txt file. The whole process could be described like this:
Open a txt file for reading
Read the very last character in the same file & if the character is x, leave the file as it is but if the last character is anything else apart from
Simple moving character question -
Hi,
I'm basically making a small corny game but I'm enjoying creating it. I have hopefully an easy question. I am just moving a character in four directions on the screen but in angled directions - 45 degrees and so on. So the character never just moves up/down or left/right. All
Seperate Character From String -
Hi, i have a string of 150 characters
I need to process each character 1 by 1..
And *ONLY* the 150 from the string..
so if there are 151 in the string.. then DON'T process any above 150
i need to process each character 1 by 1.. so its like
the character can be A-Z, 1-9, or any c
encryption. [resolved] -
I'm quite sure there is an inbuild encryption function in PHP. What is it called and how do you use it? More importantly, will the string returned ever contain the character ";"? I need that character to seperate the items in the list, if the encrypted strings contains this c
Chinese Character in VB -
My application is written in VB. Due to some reasons, the locale of the client machine is English and can't be set to my desired language(Simplified Chinese). When i type a simplified chinese character into a textbox, it turns into ?. When i look into the event KeyDown & KeyPress,
how to find 1st, 2nd , 3rd character of string -
how do i get first character 2nd character and 3rd character of a string
for example string is as like "youth" then i want to use if else statement that if first character is "y" then do this and if secind charater is "o" thendo this
remenber:- all
Character codes(ansi or ascii) -
I can't figure out the stupid command for extracting the character code for a character...
is it Chr()?
Searching text for a character -
I want to know a fast way to find a character and get it's position and then continue search for a same/other character. And with a command that works in VB4...
Thanks for any help,
2 duh Question... -
1) How do you rename I file?
2) Limit a textbox to a format of (77N) where character 1 and 2 are numeric, character 3 is alpha (3 character max entry).
Please help.
Character Set Name -
Does anyone know how to get the Character Set Name using a Character Set Code?
Thanks in advance
How to read character by character in text file -
Hi All. I need help on how to read character by character in a text file using vb 2005 and save each character in an array.
example data in the text file:
ABCD 1234
EFGH 5678
THANKS
need help again 2 -
Hello, i m still begineer in vb.NET. recently i have develop a program that will count how many message in a textbox , if the character is over amount of 100 characters, it will be consider as 1 message, if 200 character it will be 2 message and other characters will count as the same
Changing faces in a label box -
Hello everyone,
I just started using Visual Basic 6.0 and my first assignment for my class is using two commands buttons and a label box to show face changes to a similing face (Wingdings character "J") to a frowning face (Wingdings character "L").
Newline character(s) -
Is it even remotely possible to change the character Textboxes use to identify the beginning of a new line? Instead of chr(13)-chr(10) for new lines and chr(13)-chr(13)-chr(10) for wordwraps I could set them to some arbitrary character strings?
Failing that, does anyone know of a c
Character arrays and pointers -
I have a few questions here...
char *something
char otherthing[50];
something allocates a pointer to a character. I've seen strings/character arrays passed around using these. How much storage does this really offer? Is it safe? I can actually point to a string that I haven'
Defining multiple images as 1 variable -
Hey, I'm making a silly game. I have 8 images (sprites) as a character. Each image depicts the character walking in a specific direction. To give the illusion of all 8 images as 1 character. I've set only 1 to be visible at any time, however each image resides at the same coordinates,
Changing a single character in a string -
Is there an easy (easier) way to change a single character in a string?
Say I have a string: myStr = "The brown dog laid down."
I know I want to change the 11th character to an "h" (myStr = "The brown hog laid down.")
Is there a better way than:
overwrite character in text box -
Sirs,
I have 4 text boxes each with One character input.
I have entered the characters for the first 3 textboxes( through keyboard).
Now my focus is on the fourth textbox.
Now if I shift my focus to the 1st textbox and
try to enter a character( from keyboard) it wont a
Escape the " character -
I need a way to escape any character. In Javascript this can be achieved by using a \ before the character. For example:
\a means a
\/ means /
I need a way to do this VB. I know I could use chr(), but I don't want to restructure my whole app to deal with it that way.
The prob
character values -
I'm opening and closing text files and i want to change some of the characters. i.e. subtract a number from each character value.
if opening the file in binary, and reading each individual byte, how would you detect each character, and then change the character value. because this d
[2005] Upper case and lower case changing in textbox in asp.net2.0 -
Hello all,
TOUpper() changes everything to upper and ToLower() changes everything to lower
suppose i entered all character in upper case
i want to convert the first character entered in textbox to upper case and remaining to lower case . Kindly help me to solve this.
Thanks i
[2005] Unicode in Labels and Textboxes -
Hello everyone.
I'm looking for a way to display anyUnicode[/b] character on a label, or in a Textbox - similar to what the Windows Character Map does. in the Character Map, you can select any font, and any character, and it gets displayed inside the textbox, allowing you to copy t
how 2 read character by character -
I want to read a txt file character by character and put it in my txt box. How can this be done . I knot the proces in "c" using pointer but don't know how to do it in vb.
also can this also read all the characters from ascii(1 to 255).
please provide me with any ava
Unrecognized character in file -
I am receiving a file from an outside source and it has an unrecognized character as the last character in the file. I must concatenate the file with a header file and this character (which appears as a small box) causes this error message:
Run-time error '62':
Input past end of
Getting the character code of a character -
How can I get the character code of a character? For example I want a function that will return 68 if given the letter "D". It should also be able to accept characters that aren't ascii characters such as 0x03 or something.