Search Result

Collapse
23 results in 0.0042 seconds.
Keywords
Members
Tags
strings
  •  

  • Marko Danilovic
    started a topic Extract/convert string from XLS

    Extract/convert string from XLS

    Here is my code:


    Code:
    Option Explicit On
    Option Strict Off
    Imports System.IO
    Imports System.Text
    Public Class Form1
    Public moApp As Object
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Try
                moApp = CreateObject("Excel.Application")
                moApp.Visible = False
            Catch
    ...
    See more | Go to post

  • W051
    started a topic Using strings and if statements in C++
    in C

    Using strings and if statements in C++

    The problem with this code is that there are no errors showing, but when i compile the program, the if else statements do not carry out as they should do. Both if statements show the same answer, for example the second if statement. If I type Y or N then I get the same thing, 'You will now choose an event'. How do i get rid of this problem? Is char supposed to be used or string?
    Code:
    #include <iostream>
    #include <iomanip>
    ...
    See more | Go to post

  • GA17
    started a topic How can I use a string as a file name?
    in C

    How can I use a string as a file name?

    I am trying to create a file with variable name. In order to do that I use a string, I let the user scan for it, but the problem appears when I try to "fopen", since I am not sure for the syntax in this case.
    See more | Go to post

  • londres9b
    started a topic Truncate string but keep full html tag content
    in PHP

    Truncate string but keep full html tag content

    Hi, I have this nice function to truncate a string with HTML.
    It's very good only now I ran into a problem.

    There are cases where for example The input will be this:
    <a href="some url">this is a link</a>
    and what I want to output is exactly the same, even if it it's bigger than the maximum length specified.

    In other words, inside html tags it can't cut.

    Can someone...
    See more | Go to post

  • randomstring
    started a topic Strings in C
    in C

    Strings in C

    Hello. I'm new to C, and trying to figure out why some code I wrote isn't working. The code is supposed to receive a telephone number that could be formatted with digits, parenths, or dashes. It is supposed to strip out the parenths and dashes, retaining just the digits. Here's the code:

    Code:
    char* formatNum (char* validNum) {
        
        int counter;
        int index;
        int length;
        char* numOut;
    ...
    See more | Go to post
    Last edited by randomstring; Mar 13 '12, 09:22 AM. Reason: Added tag for C programming

  • rangerSkip
    started a topic Searching parallel arrays
    in C

    Searching parallel arrays

    My program is designed to take input from a file containing a list of titles and authors. The file looks like so:

    title
    associated author
    next title
    associated author
    etc.

    The problem I'm having is with my showBooksByTitl e and showBooksByAuth or functions, I guess what I'm asking is how does one compare parts of strings so that if a user searched for Mal (and there was author D.S. Malik and...
    See more | Go to post
    Last edited by rangerSkip; Dec 10 '11, 09:30 PM. Reason: I've added the library.txt file if you were confused about my Malik example.

  • nick john
    started a topic Python if statements with strings.

    Python if statements with strings.

    Why does this not work? Why does this not return "good im glad". Sorry i'm a beginner.
    Code:
     x = str(input("Hello how are you?"))
        
        if x == "very good":
            print("Good Im Glad To Hear That!")
        else:
            print("I'm Sorry!")
    See more | Go to post

  • Andrew Jones
    started a topic How to Ignore \n when reading in strings?

    How to Ignore \n when reading in strings?

    Hi,

    I am new to using python. I have a problem. I need to read in strings from a data file and only count those that are explicitly numbers. So I am using the isdigit() method.

    But the problem is that the data file has multiple strings so the problem is the \n messes my code up.

    My program only works on the last number because that is the end of the file and there are no more empty spaces or a return at...
    See more | Go to post

  • Why are vectors and strings better than arrays?

    I've got many differences between vectors/strings and arrays but I need more details. I guess I don't really understand it enough to do this but this is what I've concluded so far;

    An array is a collection of data storage locations, holding the same type of data and can be individually referenced by adding an index to a unique identifier.

    They can be declared by writing the type, the array name and then the number of...
    See more | Go to post

  • .Openreport method NOT printing ALL records from a filtered form, why?

    I am using Access 2003 on XP Professional 2003 platform. I have been

    struggling with what appears to be a relatively easy coding problem.

    I am unable to get my VBA code to show all the records and allow me to

    view the filtered responses from user input, once my cmd_click() event

    fires.

    The form displays the 19 fields from database in an AD HOC form, using a
    ...
    See more | Go to post

  • asdfjkl
    started a topic reading more than 1 string in c
    in C

    reading more than 1 string in c

    i'd like know how to read more than 1 string without using a structure and display them
    See more | Go to post

  • lel7lel7
    started a topic How to replace multiple integers at once

    How to replace multiple integers at once

    Hi, i am new to python and having some problems...

    I am trying to figure out how to change multiple integers at once so i can produce the complement of this DNA strand...
    >>>dna = """tgaattctatga atggactgtccccaa agaagtaggacccac taatgcagatcctgg a
    tccctagctaagatg tattattctgctgtg aattcgatcccacta aagat"""
    (ie. acttaagatactt.. ...)

    I have learnt how to remove \n character...
    See more | Go to post

  • Neuro
    started a topic dll error: Expression is not a method

    dll error: Expression is not a method

    Ok so I have alot of plans for programs coming up and I want them all to fade in and out so instead of copy and pasting from project to project etc I learnt about dll's

    So when I added in the references etc and I typed in what I declared the Fadein function as which was "FadeIn" I got an error saying it needed to be declared
    So I declared it as a string
    Code:
     Private Sub Form1_Load(ByVal sender As System.Object,
    ...
    See more | Go to post
    Last edited by tlhintoq; Mar 4 '10, 05:20 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • Advice on Data structure for storing mixed type elements

    I am a newbie in programming and I need some advice on storing of multiple types of data together.

    My method takes in a String Array as parameter. This string array basically is an array of Chemical elements.

    Code:
     
    String[] elements = { Calcium, Potassium, Magnesium, Sodium}
    I iterate through each element of the array and call another method that takes in each chemical element as a parameter and calculates...
    See more | Go to post

  • 360monkey
    started a topic Get Strings from Entry Boxes

    Get Strings from Entry Boxes

    Hey Bytes Community!

    I am learning Tkinter GUI and have come across a problem.

    Code:
    from Tkinter import *
    import random
    
    class App:
    	
    	def __init__(self, master):
    		frame = Frame(master)
    		frame.pack()
    		menu = Menu(root)
    		root.config(menu=menu)
    		filemenu = Menu(menu)
    		menu.add_cascade(label='File', menu=filemenu)
    		filemenu.add_command(label='Practice',
    ...
    See more | Go to post
Working...