|
Corleidum Novice
Joined: 30 Apr 2003 Posts: 43 Location: Sweden
|
Posted: Sat Apr 17, 2004 4:12 am
removin from %db? |
this is something I have
#IF (%db( @Fcount, @wfind)) {#ADDKEY Fcount @wfind %eval( 1 + %db( @Fcount, @wfind))} {#ADDKEY Fcount @wfind 1}
Now, this is made for a search engine. So if people say "find this" I will find it, max limit is 10 times.
Now I wonder, after 10 times, I want it to tell this person that ran out of find requests.
And then, I want it to remove his name from the Fcount..
How? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Apr 17, 2004 1:03 pm |
You can use #DELKEY to remove a key-value pair from a record variable.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Apr 17, 2004 3:32 pm |
Of course, once you remove his name from Fcount he'll be back to a count of zero and be able to ask for another ten items.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|