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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Retrieve table filter from the filtered table?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2008, 07:14 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 161
Awards Showcase
Beta Tester 
Total Awards: 1
Question Retrieve table filter from the filtered table?

Is there a way to retrieve the table filter from the table, rather than the somewhat more inelegant method of saving it to a global variable every time it's changed?

Scenario:

sub pick_a_value
'user picks a value & operator to filter table by
'a="<5"
o="<"
f=5
table1.filter("value"&o&f)
Get_the_rest
end sub

sub Get_the_rest
'This sub adds up the scores for all table entries apart from those already chosen
'table1.filter("value<>"&a) 'Ooops, looks like we need 2 global variables!
table1.filter("value<>"&f)
DoTheMaths
'Put things back as they were (for no real reason in this example)
table1.filter("value"&o&f)
end sub
Reply With Quote
  #2 (permalink)  
Old 09-08-2008, 06:20 AM
Basic4ppc Veteran
 
Join Date: Sep 2008
Location: Brisbane, Australia
Posts: 317
Default Doesn't look like it

Doesn't look like you can.

The Filter part of the table is a method that sets the filter. It's not a property like CaseSensitive or Cell .etc.

regards, Ricky
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
Table.Filter com Datas JoseLuz Portuguese Forum 3 11-07-2008 07:58 AM
Table.filter problems J12345T Questions (Windows Mobile) 1 08-19-2008 07:19 AM
Table filter (AND & OR) LineCutter Questions (Windows Mobile) 1 08-24-2007 01:29 PM
table filter matter francisco cobos Questions (Windows Mobile) 5 06-04-2007 07:01 AM
Table.Filter Phil Budge Questions (Windows Mobile) 2 05-16-2007 09:35 PM


All times are GMT. The time now is 02:16 AM.


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