|
-
Apr 20th, 2004, 08:04 PM
#1
Thread Starter
New Member
evaluating the contents of a string
My app takes in a string from a text box which is of course located on a form.
The contents of the string will be some form of expression statement
EG (A*B)+(C/D)
Once the user has entered their expression into the textbox and pressed a control button I want to be able to go though the string and split the contents into chars, oprators(*,+,-,/) and the parentheses.
Is split the best way to do this? Ive been playing around with it and can't seem to find a way of picking out all chars (I could by divining a list of chars but that would take forever)
Any ideas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|