PDA

View Full Version : Quick Q.


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 ->*)

Roelwe
08-21-02, 09:50
Why aren't you returning a value?
This functions checks nothing...

WingMan
08-27-02, 12:21
If i understand correctly this function waits for a variable length of time, based upon the number of characters in a string :confused: