Search Result

Collapse
86 results in 0.0055 seconds.
Keywords
Members
Tags
string
  •  

  • How to find pharses stored in a file in another large text and replace them

    i have a text file say "list.text" containing phrase that is words and spaces, each phrase is in a new line.
    I have a large number of text files in the form of paragraphs of size app 2mb each,i need to find the phrases existing in the list.text in every file and replace them with phrases having _ in place of spaces.
    my code below shows error i cannot comprehend something related to memory.PLZ help


    ...
    See more | Go to post

  • Real Hyder
    started a topic How to use data line by line with loop
    in PHP

    How to use data line by line with loop

    I have to get data from from is "text area". Data in each line.

    Then use data line by line using 'for' loop. or other do while if you suggest.


    What should I do to split it into lines then use every line.

    For example

    for (aaaa; aa<aa; aa++)
    {

    }


    Hope I defined : ( Please help me. Thanks.
    See more | Go to post

  • bsides
    started a topic How to execute a string?

    How to execute a string?

    I'm trying to create a simple script to use in Cinema 4D that will push the render settings to an external render manager called Smedge. The script is in Python. I haven't really done any programing in python, so I'm sort of stuck right now. Right now my script kicks out a file with my collected data in it, but I'm not sure how to make it execute. I've tried exec and eval. I don't really need it to kick out a file, I just did that so I could see...
    See more | Go to post

  • Tyler Wiebe
    started a topic Integer to Word

    Integer to Word

    This is just something I created since I couldn't find anything to do it.

    It converts an integer (Example: 1495954485) to the word representation of that number (Example: one billion four hundred ninety five million nine hundred fifty four thousand four hundred eighty five).

    Code:
        public class Integer
        {
            #region Functions
    
            /// <summary>
            /// Returns
    ...
    See more | Go to post

  • MRKRZ2
    started a topic How do I Show TBA When Date is Null

    How do I Show TBA When Date is Null

    Is it possible make a column a date field but if a date is not known that "TBD" can be entered in the same date field? The field needs to be a date and/or text field.
    See more | Go to post
    Last edited by MRKRZ2; Jan 13 '12, 03:55 PM. Reason: Explain better

  • david2031
    started a topic the str.split(sep,maxsplit) function

    the str.split(sep,maxsplit) function

    given:
    my = 'my name is david'

    i would like to make this into a list with 2 values
    i would like the list to be:
    mylist = ['my name is','david']

    so i try using:
    mylist = my.split(' ',1)

    but i soon find it splits left to right which returns:
    mylist = ['my','name is david']

    to avoid having to use alot of other code, i am wondering if there is a way to make it split right...
    See more | Go to post

  • How do you validate a String to make the program continue or not?

    I'm not sure if this should be in two separate posts or not. So, I apologize ahead of time if this is the case. However, since I'm trying to do one thing here with two conflicting methods, I thought it should go together.

    I'm trying to have a simple 'Do you want to continue?' question at the end of a program. However, I want to validate that information so there are no mistakes. I know there are a TON of ways of doing it - I've...
    See more | Go to post

  • VB string.left and string.right as C# Extension methods on string

    Perhaps these 2 tiny methods I'm sharing here come handy to someone.
    Code:
    		public static string Left(this string input, int length) {
    			string result = input;
    			if (input != null && input.Length > length) {
    				result = input.Substring(0, length);
    			}
    			return result;
    		}
    
    		public static string Right(this string input, int length) {
    			string result = input;
    			if
    ...
    See more | Go to post
    Last edited by Niheel; Oct 5 '11, 03:59 PM. Reason: Can you post an explanation of what they do and how to use them? Insights have to more like articles than just code.

  • Value of type '1-dimensional array of String' cannot be converted to 'String'

    Would anyone know why I'm getting the error message "Value of type '1-dimensional array of String' cannot be converted to 'String'"?

    Code snippet:

    Code:
    Dim masterids As Long()
    Dim addedpropdefids As Long()
    Dim removedpropdefids As Long()
    Dim comment As String()
    
    
    Dim updatefileprop As File = mDocSvc.UpdateFilePropertyDefinitions(masterids, addedpropdefids, removedpropdefids,
    ...
    See more | Go to post

  • Noodles
    started a topic scanf problems with strings and chars
    in C

    scanf problems with strings and chars

    Hi,

    Im quite new to C++ and am trying to learn most of the commands.
    So i wanted to make a Programm that has a normal mode and a non normal mode, kindof.
    And i wanted to make a question, which the user has to answer to start normal or unnormal mode.
    I think this code should show my idea.

    The if command never Reacts to a j.
    Why is that??

    Code:
      char jon;
    ...
    See more | Go to post

  • pb2000
    started a topic string representation of binary to integer

    string representation of binary to integer

    Hello,

    I struggle with really odd matter:
    There is sth like '01010101' which is needed as an integer on function output. Is it possible to convert it (string representation of binary to integer)?
    I tried ::byte and get_bytes(), without any success.

    Can You help me? Thanks a lot!
    pb2000
    See more | Go to post

  • havanna
    started a topic exporting unicode strings from Access with VBA

    exporting unicode strings from Access with VBA

    I have some russian strings in Access (2000 Version and no way to upgrade, sorry, and VBA isn't my biggest strength)
    Exporting those tables to excel works fine, but I can't manage to export in a script to a flat text file, instead I get the dreaded ??????????.

    Is there a way to do it?
    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

  • Convert file with information into dictionary

    Hello, I have a text file with information on products, the first 3 lines can be seen below
    CODBO, Call of Duty BlackOps, 120
    SC2WL, Starcraft 2 WoL, 90
    FONV0, Fallout New Vegas 100
    CODBO is the ID, Call... is the name and 120 is the price.
    What would the code be for a function that would turn that into a dictionary that looks similarly to this:
    {'CODBO':('Call of...
    See more | Go to post

  • akshai5050
    started a topic Convert from string to SqlMoney

    Convert from string to SqlMoney

    I am trying to convert a string entered by a user into a text box into SqlMoney in order to store the price in a database. The data type of the price in the database is set as money. The code i am using to define this text box and the Product price is below.
    Code:
    string s = textBox3.Text;
          SqlMoney ProductPrice = SqlMoney.Parse(s);
    But, for some reason when i enter any number into there, i am receiving an error:
    ...
    See more | Go to post
Working...