Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Queries for Derez and Filippo

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-06-2010, 05:38 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Well, not exactly as you ask for but I updated, see the help file. Thanks again for the debugging

Quote:
I'm not sure that the question is aimed at me
Agraham - yes it was aimed also to you, and I always appreciate, value and learn from your inputs.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 07-06-2010 at 05:45 AM.
Reply With Quote
  #12 (permalink)  
Old 07-06-2010, 03:31 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

Just reading your comments for the library update on the other thread, you say you check for empty input strings. Ummm, that wasn't exactly the problem. When I said "It seems to be expected that the item will be found", I didn't mean that the search was failing because of the input string being empty, I meant it failed because the target was not in the tree.

So you have definitely improved it by checking the input, and a return of "-1" is as good as any, but, sadly, my original problem is still there.

In your sample program, tree_1.1.sbp, type in the text "mummy" then search, you'll see what I mean.
Reply With Quote
  #13 (permalink)  
Old 07-06-2010, 05:04 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

OK OK, when explained slowly I understand fast...
corrected:
Code:
if(st.Length > 0)
    {
return st.Substring(0,st.Length-1) ;}
else
    {
return "" ;}
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #14 (permalink)  
Old 07-06-2010, 10:39 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

That's the one cheers!

And I do like the way we can distinguish between the two cases "-1" and "". Very good!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frage an Filippo newbie German Forum 16 09-28-2009 08:32 PM
@Derez and Klaus wm.chatman Questions (Windows Mobile) 4 05-18-2009 04:02 PM
Filippo listview sqlite with where clause RB Smissaert Questions (Windows Mobile) 0 12-31-2008 01:41 PM


All times are GMT. The time now is 07:14 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0