Enoch
06-02-02, 21:53
| Didn't have the access to post in any newsgroups yet, so I'm posting it here and hope that some of you might be able to answer me a question The thing is, I was afk for a few minutes and a friend of mine told me that he had looked at my code and thought it could use a facelift. This is what I got out of taking a break. bool KunTal(AnsiString S) { int a=StrLen(S->c_str()); for (int i=1;i<=a;i++) } Now, I know that the bool function is a true/false thing. But what I'm currently in doubt about is - that this whole function checks if a field contains min. 1 integer. But, what is the function of the AnsiString? I declare an AnsiString S, but on the line below - what does it do? S->c_str() When I test it, I get E2288 (Pointer to structure required on the left side of -> or ->*) |