1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Rep Power

    Help with array of strings for new guy.

    Ive just started programming in delphi 7, and i need some help.

    I'm making a text-based calculator (eg. you write "three plus two" and the program answers " equals five.") and i need a function that can find a single character in an array of string. I'm currently using:

    stringa[x,y] := stringb [y]

    where stringa is the array and string b is an ordinary string.

    Can someone tell me where i'm wrong / how to fix it?

    Help is greatly appriciated!
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    Look at the online help for Pos and AnsiPos functions.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo