About 515 results
Open links in new tab
  1. string.replace non-ascii characters - Post.Byes

    Feb 12, 2007 · Greetings Pythonistas. I have recently discovered a strange anomoly with string.replace. It seemingly, randomly does not deal with characters of ordinal value 127. I ran into this problem while downloading auction web pages from ebay and trying to replace the "\\xa0" (dec 160, nbsp char in iso-8859-1) in the string I

  2. Repeat character x number of times - Post.Byes

    Nov 21, 2005 · System.String.P adLeft(Integer, Char) System.String.P adRight(Integer , Char) str = String.Empty.Pa dLeft(5, "x"c) I normally use the first one, the StrDup is the String function from VB6. The last two requires an existing string, so I normally would not use them for this per se, I would use them when I needed to pad an existing string to

  3. How to restrict lenght of entry widget to certain number of character

    Jul 19, 2005 · to 'max_len_' characters. [color=blue][color=green] >> var.trace_varia ble("w", on_write)[/color][/color] Tell the StringVar to call the function on_write() every time its value is changed. So every time the user edits the data in the Entry, in turn the Entry changes the data of the StringVar, which calls the on_write()

  4. limiting text input in Tkinter Entry widget - Post.Byes

    Jul 18, 2005 · (characters) for the numbers and one of lenght 2 for the letters. What I don't like is that although the visible part of the widgets thus are 4 and 2 characters, users can actually input more characters. They could for example input 12345 abcd. I want to make that impossible. Does anyone know a way to limit the amount of characters an entry widget

  5. Selecting only letter and number characters - Post.Byes

    Mar 9, 2006 · Re: Selecting only letter and number characters This also check all characters one by one. But, it is a little easier to check each character. CREATE FUNCTION TO_ALPHANUMp (inStr VARCHAR(4000)) RETURNS VARCHAR(4000) LANGUAGE SQL CONTAINS SQL DETERMINISTIC NO EXTERNAL ACTION BEGIN ATOMIC DECLARE non_an VARCHAR(4000); DECLARE anStr VARCHAR(4000);

  6. Get last two characters of a string - Post.Byes

    Nov 12, 2007 · I store current year in string format. I want to get the last two values of the year. For example: if year is 2007, I want 07. Which string function to use ?

  7. Datagridview: limit number of characters - Post.Byes

    Jul 18, 2007 · Hi, I have a simple application with a datagrid. It just gives a list of selected employees, and the user then enters a grade in a column for each employee. I have created the application which is fine, but a user has requested that when you enter a grade (that is valid), they want the system to move to the next employee.

  8. Count all occurrences of a character in a string - Post.Byes

    Nov 16, 2005 · There is a string method to count the total number of a specified character in a string. EX: count the total of (*) in a string *** Test *** Thanks.... Login or Sign Up

  9. how do you create string of repeating characters? - Post.Byes

    Nov 15, 2005 · How do I create a string consisting of a specified character repeated a specified number of times? Something like String.Fill('x', 10) to create "xxxxxxxxxx" The best I see would be some hack using PadLeft() or (probably better) some method written from scratch.

  10. How to use special characters in strings like in C#?

    Nov 21, 2005 · > those special characters, and handle them the same as in C#?[/color] The support for escaped characters in C# string literals is a compiler feature, which means that it will only work at compile time. The compiler will replace the escape sequence with the escaped character. C# doesn't provide a way to perform the unescaping at runtime.--

Refresh