Search Result

Collapse
46 results in 0.0047 seconds.
Keywords
Members
Tags
text
  •  

  • growthndevlpmnt
    started a topic Trying to justify text using Python

    Trying to justify text using Python

    Ok so I'm supposed to be taking a input text file and justifying it. I've have gotten the text to do character justification bar the last line. I'm trying to figure out how to iterate over each space and insert a ' ' to get the last last up to the specified length.

    If I try
    Code:
    for ' ' in new:
        insert(new,' ',find(' '))
    in the spirit of simple style that python has taught me,
    I get a non iterable error....
    See more | Go to post

  • How to edit multiple files in several sub directories?

    I want to add particular text to multiple files in each directories

    Directories such as d1,d2,d3 so on. Each directory contains a unique file name named print.txt but contains different content. I want to add a particular text to each of the text file. How to add the text?
    See more | Go to post

  • DoCmd.TransferText acImportDelim is appending data; I need it overwrite...how to do?

    I am using DoCmd.TransferT ext acImportDelim to import a number of text files. I thought this command would overwrite current table data with new, but instead, it is appending.

    How do I get this command to overwrite the current table with new data each month?
    See more | Go to post

  • talpol00
    started a topic Fixed width txt to csv

    Fixed width txt to csv

    Dear users and helpers,
    I searched online, but could not find the answer to my question. I need convert a txt file to a csv. I have figured out how to do this with delimeters, however, the txt file does not have any delimeters or headers so I must set fixed width numbers. The file has millions of records. The widths for the columns are 10, 60, 60, 60, 30, 2, 3, 6, 9, 5, 6, 12, 12, 5, 3, 12, 12, 5, 3.

    My two challenges are:...
    See more | Go to post

  • Suggz
    started a topic Import text file into excel using vbscript

    Import text file into excel using vbscript

    Hi,

    I am attempting to import a text file, but I get an error "(10094) ActiveX Automation: Object var is 'Nothing'."

    Not sure what the mistake here is.

    Code:
    Sub vba_excel_importing_file()
        Dim strFileName As String
    
        strFileName = InputBox("Enter the full path to the comma " & _
                   "separated file to import")
    ...
    See more | Go to post

  • Rachaun
    started a topic Textbox.TextChanged

    Textbox.TextChanged

    Help,

    I am using Visual Studio 10 and have run in to an issue that I cannot resolve on my own. When debugging one of my forms the app hangs on a text box control with no errors. But only if you change the text, or press the "Tab" key. The text box is in a group box with a range of other text boxes most with the same properties. All of the controls in this group are connected to an access database record, and formatted...
    See more | Go to post

  • Search text fields for keywords given a priority list

    I have a table (TextTbl) containing several text fields, and a table containing a list of keywords (KeywordTbl), ordered by 'priority'. I would like to populate a TextTbl.Keyword field within each record to contain the highest-priority keyword found within its text fields.

    I have written the following query:

    Code:
    UPDATE KeywordTbl, TextTbl 
    SET TextTbl.Keyword = [KeywordTbl].[Keyword]
    WHERE (TextTbl.TextField1
    ...
    See more | Go to post

  • ilya Kraft
    started a topic Text Positioning Problem (Vertical align)

    Text Positioning Problem (Vertical align)

    Hello,

    I've recently came over a problem, which I thought was easy to solve... but turned out that I have no idea how to fix it )))

    I have text displaying like this on my website (Starts from Top):

    http://bytes.com/attachments/attachm...align_prob.jpg

    But I need it to look like this (in the Middle):

    http://bytes.com/attachment.php?atta...=5308&stc=1&am...
    See more | Go to post

  • Evaluate a String for a Machine Readable Value and Replace w/ VBCRLF

    Hi, seriously sophomoric question here! TIA for any help.

    The text below is representative of text I imported from a large excel spreadsheet. In an Access Memo field, the "Line Feeds" are not respected. the text prints out contiguously with a bazarre "machine" character instead of a line feed. I need to replace that value wherever it exists with something that will cause Access to format the text as it appears...
    See more | Go to post

  • shockna1
    started a topic Why is StreamWriter not working?

    Why is StreamWriter not working?

    Im trying to write a class to replace strings in a text file but for some reason StreamWriter will not work in my class. Its not throwing any exceptions or anything its just not writing to the text file. Also I used to have a destructor in my class but it was throwing an exception when I tried to close or dispose outFile.

    Code:
    class TextReplacer
    {
        private StreamReader inFile;
        private StreamWriter outFile;
    ...
    See more | Go to post
    Last edited by Niheel; Apr 17 '11, 07:40 AM.

  • Alex Dransfield
    started a topic Why is label not showing up in my tab?

    Why is label not showing up in my tab?

    When I create the tab for the tab control and try to add the label to it, the label will not show. What am I doing wrong here?

    Code:
    private void FirstLogin()
            {
                TabPage loginTab = new TabPage("Login");
                loginTab.BackColor = SystemColors.Control;
    
                tabControl1.TabPages.Add(loginTab);
    
                Label loginLabel = new Label();
    ...
    See more | Go to post
    Last edited by Niheel; Jan 25 '11, 01:48 PM. Reason: Question and explanation first, code last.

  • nervusvagus
    started a topic How to count letters in a text file?

    How to count letters in a text file?

    Following is a code that counts the number of letters in a text file named "alice_in_wonde rland.txt"
    So far I only have text: aaaaa bbbb cccc
    in the text file:


    Code:
    # countletters.py
    
    def display(i):
    	if i == 10: return 'LF'
    	if i == 13: return 'CR'
    	if i == 32: return 'SPACE'
    	return chr(i)
    	
    infile = open('alice_in_wonderland.txt', 'r')
    text = infile.read()
    ...
    See more | Go to post
    Last edited by nervusvagus; Jan 7 '11, 07:57 AM. Reason: update in error

  • phpuser123
    started a topic How do I change line in a JLabel text?
    in Java

    How do I change line in a JLabel text?

    I have a label and when setting the text I want to change line .
    For instance


    String str="first line \n Secondline ";
    JLabel label.setText(s tr);


    I tried the above code but it does not work..How do I change line in a string ?
    See more | Go to post

  • How to Change Text Highlight Color in RichTextBox?

    I'm writing a program that uses a RichTextBox. Since the Black Highlight Color is not readable in some cases, I need to change it at some times. I need another Selection or Highlight Color like Green, Red, LightGreen and such colors. As you know, the Highlight color for TextBox and RichTextBox and even for ProgressBar is either DarkBlue or Black. I'm looking for a way to change this Highlight Color.

    Thank you in advance for your hel...
    See more | Go to post

  • Alex T
    started a topic C++, How do I overwrite a .txt file?
    in C

    C++, How do I overwrite a .txt file?

    I am trying to overwrite an ifstream file with an ofstream file. How do I do this?
    See more | Go to post
Working...