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.

Listview.dll with and without SQLite-Interface

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 11-15-2008, 08:32 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Cableguy View Post
I can use this line like this?
Code:
LIstView_CtrlRef=Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
No, you cannot bring a reference to a control into Basic4ppc as anything brought in ends up as a String. You have to keep the reference external in a library.
Code:
Obj1.Value = Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
"BaseDados.Load_Tecnicos(ListView.controlRef)" You can't do this either for the same reason. You can only pass a control reference inside Basic4ppc where the name of a Form or control is explicitly expected so Basic4ppc knows what to do with it. Usually this is to pass it to a library as a parameter like passing FormEx.ControlRef to FormLib.ChangeParent.

"cmd.ExecuteTable(ListView.ControlRef,0)" ExecuteTable expects a reference to a DataGrid control or one derived from it like a Basic4ppc Table. As ListView is not derived from a DataGrid this wouldn't work.

I'm not sure what you are trying to achieve - can you explain a bit more?
Reply With Quote
  #22 (permalink)  
Old 11-15-2008, 09:50 AM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
"cmd.ExecuteTable(ListView.ControlRef,0)" ExecuteTable expects a reference to a DataGrid control or one derived from it like a Basic4ppc Table. As ListView is not derived from a DataGrid this wouldn't work.
I wanted to say exactly the same...
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #23 (permalink)  
Old 11-15-2008, 11:39 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
"cmd.ExecuteTable(ListView.ControlRef,0)" ExecuteTable expects a reference to a DataGrid control or one derived from it like a Basic4ppc Table. As ListView is not derived from a DataGrid this wouldn't work.
I understand it now....
too bad...
I'll try to use a hidden table to get the executetable results and then use the list view to show them...
Thank you all for the input..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #24 (permalink)  
Old 02-03-2009, 06:25 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello,

i have updated my library v1.0.7.2


Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #25 (permalink)  
Old 03-06-2009, 07:06 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

i have updated my library v1.0.7.4
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #26 (permalink)  
Old 04-13-2009, 07:40 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

i have updated my library v1.0.7.5
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #27 (permalink)  
Old 05-12-2009, 08:49 PM
Junior Member
 
Join Date: Mar 2008
Posts: 33
Default image examples

Does anyone have an example of using images with listview?

Thanks

James
Reply With Quote
  #28 (permalink)  
Old 05-13-2009, 05:21 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo bish0p,

You can look at my application http://www.basic4ppc.com/forum/share...gexplorer.html

Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #29 (permalink)  
Old 05-22-2009, 01:54 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default Listview questions

I'm trying to build an app that looks like the MS App Store client. I have two questions:

1. Does ListView support PNG images? I get an error when trying to load them
2. Can ListView support a multi-line string? I have tried to cat two lines with "&" but both lines print out as a single string
Reply With Quote
  #30 (permalink)  
Old 05-22-2009, 05:16 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by digitaldon37 View Post
2. Can ListView support a multi-line string? I have tried to cat two lines with "&" but both lines print out as a single string
Usually to force a new text line we should use CRLF, The ampersand "&" only concatenates the strings.
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
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
Serielles Interface Heinz German Forum 20 06-20-2009 03:17 PM
Access to IShellLink Interface? BjornF Questions (Windows Mobile) 1 10-16-2008 06:13 PM
Listview.dll con SQLite e SQLce Filippo Italian Forum 1 08-04-2008 08:49 AM
Database Interface jireland Basic4ppc Wishlist 2 01-26-2008 10:23 PM
starter question Re interface colin9876 Questions (Windows Mobile) 3 11-15-2007 01:51 PM


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


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