Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List 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
  #11 (permalink)  
Old 08-07-2008, 09:55 PM
Knows the basics
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 70
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks Filippo.

Is that news is this library?

manu
Reply With Quote
  #12 (permalink)  
Old 11-14-2008, 01:26 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default ControlRef missing and no CS file

Hi Fillipo...

I'm trying to use your dll with formExDesktop, and I !!!NEED!!! the ControlRef, wich does not exist in the current version of your dll...
Since you have not provided a CS file, I cannot add this prop it myself..
Could You please do this...???
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #13 (permalink)  
Old 11-14-2008, 03:53 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Cableguy View Post
I !!!NEED!!! the ControlRef, wich does not exist in the current version of your dll...
You could try getting it with the Door library
Code:
Obj.New1(False)
  ... 
Obj1.FromLibrary("ListViewObjectName", "_LV", B4pObject(2))
Reply With Quote
  #14 (permalink)  
Old 11-14-2008, 04:01 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

Don't forget the module name:
Code:
Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
__________________
Basic4ppc reference list
Reply With Quote
  #15 (permalink)  
Old 11-14-2008, 05:30 PM
Filippo's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 260
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Cableguy,

i don't understand for what you need a CS-file, the ControlRef or why...


Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Touch Diamond, 4GB
______________________
Reply With Quote
  #16 (permalink)  
Old 11-14-2008, 06:11 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default

Quote:
Originally Posted by Filippo View Post
Hi Cableguy,

i don't understand for what you need a CS-file, the ControlRef or why...


Ciao,
Filippo
I'm using your ListView with SQLLibrary (NOT ListViewSQL), And I need to reference the Listview in a command as a String...
Since there is no NAME prop or Control.Ref, The command can't "see" the desteny table...

With the cs file I could Add this prop to the dll myself and then use it...

@EREL & Agraham:
I'm using 4 dll's already, and adding another one just to get this parameter is a bit overkill...
Anyway...
Code:
Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
I can use this line like this?
Code:
LIstView_CtrlRef=Obj1.FromLibrary("Main.ListViewObjectName", "_LV", B4pObject(2))
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing

Last edited by Cableguy : 11-14-2008 at 06:23 PM.
Reply With Quote
  #17 (permalink)  
Old 11-14-2008, 06:26 PM
Filippo's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 260
Awards Showcase
Beta Tester 
Total Awards: 1
Default

could you please post a part of your code here? maybe i find another way to get your problem away
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Touch Diamond, 4GB
______________________
Reply With Quote
  #18 (permalink)  
Old 11-14-2008, 06:35 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default

I have a module handling the database, so I just pass some values to a particular sub...
Like this one:

Code:
Public Sub Load_Tecnicos(destino)
Cmd.CommandText = "SELECT Nome FROM Tecnico"
cmd.ExecuteTable(Destino,0)
cmd.ExecuteNonQuery
End Sub
In this sub I pass as "destino" the table name...
But since I'm using your listview.dll, I cant get a valid reference to the table without the ControlRef.

With a native b4ppc table, my command would look like this...

BaseDados.Load_Tecnicos("Main.Table")

With ListView, it must be something like...

BaseDados.Load_Tecnicos(ListView.controlRef)
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #19 (permalink)  
Old 11-14-2008, 06:56 PM
Filippo's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 260
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Here is a small example

PHP Code:
Sub Globals
  Database
=AppPath "\Northwind.sl3"
  
SortAscending=True
End Sub

Sub App_Start
  Form1
.Show
  lv
.New1("Form1",0,0,Form1.Width Form1.Height)
  
lv.FullRowSelect=True
  lv
.SetRowColor(cBeige,cSilver)
  
LoadSQL
End Sub

Sub LoadSQL
  lv
.Clear
  
' ' lv.loadSQL(Database,"Categories"""True)
  
lv.loadSQL(Database,"Products"""True)
End Sub

Sub lv_ColumnClick
  SortAscending
=Not(SortAscending)
  
lv.SortColumn(lv.SelectedColumn,SortAscending)
End Sub 
Attached Files
File Type: zip Exampl_for_Cableguy.zip (254.6 KB, 0 views)
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Touch Diamond, 4GB
______________________
Reply With Quote
  #20 (permalink)  
Old 11-14-2008, 09:05 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default

I tryied EREL's and Agraham's code, but it fails with the error message below...

@Filippo
The call to the LoadTecnicos sub is comming from a diferent module...
The database module will hold ONLY and EXCLUSEVELY SQL objects(command, Conectio and datareader).
Your aproach demand me to add the treeview object to the database, and is is a NO-NO for me...
With a native table, all goes OK
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
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
Serielles Interface Heinz German Forum 18 11-17-2008 08:44 PM
Access to IShellLink Interface? BjornF Questions & Help Needed 1 10-16-2008 07:13 PM
Listview.dll con SQLite e SQLce Filippo Italian Forum 1 08-04-2008 09:49 AM
Database Interface jireland Basic4ppc Wishlist 2 01-26-2008 11:23 PM
starter question Re interface colin9876 Questions & Help Needed 3 11-15-2007 02:51 PM


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


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