Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


table1.filter


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-29-2007, 11:01 AM
Senior Member
 
Join Date: Jul 2007
Posts: 152
Awards Showcase
Beta Tester 
Total Awards: 1
Default table1.filter

I am having trouble creating a table filter. I have created them in the past but nothing using the and in them. This is my last attempt over the past 24 hrs.

x1 = Int(txtx1.Text)
x2 = Int(txtx2.Text)
y1 = Int(txty1.Text)
y2 = Int(txty2.Text)
table1.Filter(("x1 = x1") AND ("y1 = y1") AND ("x2 = x2") AND ("y2 = y2"))

I have had some that compiled but when run bomb with snytax error's. This one doesn't compile because it sayes x2 is never used. Most of the time when I run into this I get it sorted out. Any help appreciated.
__________________
Using 6.30
dennishea
Reply With Quote
  #2 (permalink)  
Old 12-29-2007, 11:28 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,900
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I think the filter should be a single string and can only include column names and literals not variables. Look carefully at the help entry for Filter.
Reply With Quote
  #3 (permalink)  
Old 12-29-2007, 02:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

What are the columns names?
Reply With Quote
  #4 (permalink)  
Old 12-29-2007, 03:15 PM
Senior Member
 
Join Date: Jul 2007
Posts: 152
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Header cString, Color cString, x1 cnumber, y1 cnumber, x2 cnumber, y2 cnumber, r cnumber.
I also put what's suppose to be in them. I think I have it solved but hard to debug without the watches. I have found other ways to debug such as using msgbox and redisplaying information in the textboxes themselves. agraham pointed me back at the help file so I figured I had overlooked something and I did. With that I managed to move forward enougth that I think I have a handle on it now.

@agraham Thanks for the direction.

@erel 6.0 is a great improvement. As always I really like basic4ppc.
__________________
Using 6.30
dennishea
Reply With Quote
  #5 (permalink)  
Old 12-29-2007, 03:18 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

Don't worry about the watches.
A patch will be soon available at the forum.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on Table1.Cell,SelectedCol? cdeane Questions & Help Needed 4 09-09-2008 06:53 PM
Table1.LoadCSV s_ostap Russian Forum 3 07-03-2008 09:30 AM
cmd.ExecuteTable("table1",500) error dennishea Questions & Help Needed 3 06-15-2008 04:17 PM
Table filter (AND & OR) LineCutter Questions & Help Needed 1 08-24-2007 02:29 PM
table2..3..4 (not table1) etc contains gray row with cursor ppcservice Bug Reports 1 07-31-2007 01:34 PM


All times are GMT. The time now is 05:10 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0