Results 1 to 3 of 3

Thread: Quick Q.

  1. #1
    Join Date
    Jun 2002
    Location
    Denmark
    Posts
    1

    Quick Q.

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

  2. #2
    Join Date
    Aug 2002
    Location
    Belgium
    Posts
    534
    Why aren't you returning a value?
    This functions checks nothing...
    rws

  3. #3
    Join Date
    Aug 2002
    Location
    UK
    Posts
    87
    If i understand correctly this function waits for a variable length of time, based upon the number of characters in a string

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •