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.

Multiple Listviews

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2008, 07:27 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default Multiple Listviews

Hi everyone, I am new to basic4ppc and loving it so far.
I am considering changing my Tables to Listviews.


Can I add more than one listview to a form?

How do I do this?

How would i referance each listview?

Does removing all rows from a listview freeup that memory?

Thanks
Tony
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 10:11 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hello tsteward,

welcome to basic4ppc!
Some quick (but helpful) answers to your questions:

Quote:
Originally Posted by tsteward View Post
Can I add more than one listview to a form?
Yes!

Quote:
How do I do this?
Like this:

Code:
Sub Globals
End Sub

Sub App_Start
    Form1.Show
    
    AddObject(
"MyListView1","ListView")    
    AddObject(
"MyListView2","ListView")                
    MyListView1.New1(
"Form1",5,5,100,140
    MyListView2.New1(
"Form1",120,5,100,140)     
    
End Sub
Quote:
How would i referance each listview?
In the example above the listviews are nemed MyListView1 and MyListView2.

Quote:
Does removing all rows from a listview freeup that memory?
I'm not really sure how .Net handles this.


specci48

P.S.: The last question is a typical for Erel and agraham...
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 10:16 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I recommend you to add the objects with Tools - Add Object.
That way the IDE will be able to help you with the list of methods.

Fillipo wrote the ListView library so he is the real expert, however AFAIK removing the rows will free that memory.
Generally speaking in most cases the .Net Framework will take care of releasing unused allocated memory.
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
Multiple Undo/Redo Rioven Questions (Windows Mobile) 2 05-15-2008 08:41 AM
Multiple Instances of an application Louis Questions (Windows Mobile) 1 12-23-2007 05:20 AM
IDE Multiple File Support davidmw Basic4ppc Wishlist 3 11-20-2007 11:47 AM
How to play multiple sounds at once? justdo Questions (Windows Mobile) 2 09-24-2007 03:59 AM
Supporting multiple resolutions davidmw Basic4ppc Wishlist 2 07-24-2007 11:34 AM


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


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