If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Chit Chat > Quick Q.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-02, 20:53
Enoch Enoch is offline
Registered User
 
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 ->*)
Reply With Quote
  #2 (permalink)  
Old 08-21-02, 08:50
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Why aren't you returning a value?
This functions checks nothing...
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 08-27-02, 11:21
WingMan WingMan is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On