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.

ComboBox/Table

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2008, 04:51 PM
Knows the basics
 
Join Date: Aug 2007
Location: Arkansas
Posts: 68
Default ComboBox/Table

I never worked with a ComboBox(or ListBox) But have worked with Tables.
I'm having a hard time seeing a connection with the two(ComboBox/Table).
I've done searches,but it didn't seem to produce the answer I'm looking for.

Like:

Selecting from a drop down(or list)and how to Implement your selection to a table.

Using your text box to work in unison with ComboBox.

Oh,Im adding data(not files).

Last edited by cdeane : 11-09-2008 at 05:04 PM.
Reply With Quote
  #2 (permalink)  
Old 11-09-2008, 05:17 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Using a Table a Combobox or a ListBox depends on what you wanr to do and show.
Tables are used to show many data, mainly for databases, where you have several entries for each dataset.
ComboBoxes and ListBoxes are used to select one item, not a dataset, out of a certain number.
The ComboBoxes schow only the selected item and take less space on the screen.
With ListBoxes you can show more than one item that gives the user a better overlook of the possible choices, but they need more space on the screen. It's up to you the programm to dimension it's size for convenience.

I hope that this short explanation makes it a bit more clear.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 11-09-2008, 07:24 PM
Knows the basics
 
Join Date: Aug 2007
Location: Arkansas
Posts: 68
Default

I was hoping to open a choice of tables I want in a combobox
to enter data in.
I have 3 Tables to choose from.

Each Table have two sets of data(hence the textbox(s).
Reply With Quote
  #4 (permalink)  
Old 11-09-2008, 08:07 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Could you more precise on what you want to do. Do you have asimple example or already some code to look at ?

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #5 (permalink)  
Old 11-09-2008, 08:44 PM
Knows the basics
 
Join Date: Aug 2007
Location: Arkansas
Posts: 68
Default

Not really.Code is what im looking for.
But actually this is what Ive been working with.


Code:
Sub Globals
    
'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show    

table1.AddCol(cNumber,
"Yellow",50,false)
 Table1.AddCol (cString, 
"PPH"50)
 Table1.AddCol (cString, 
"RPM"50)
 
 table2.AddCol(cNumber,
"Brown",50,false)
 Table2.AddCol (cString, 
"PPH"50)
 Table2.AddCol (cString, 
"RPM"50)
 
 table3.AddCol(cNumber,
"Red",50,false)
 Table3.AddCol (cString, 
"PPH"50)
 Table3.AddCol (cString, 
"RPM"50)
 
 table4.AddCol(cNumber,
"Green",50,false)
 Table4.AddCol (cString, 
"PPH"50)
 Table4.AddCol (cString, 
"RPM"50)
 
 table5.AddCol(cNumber,
"Black",50,false)
 Table5.AddCol (cString, 
"PPH"50)
 Table5.AddCol (cString, 
"RPM"50)
 
 combobox1.Add(
"Yellow")
 combobox1.Add(
"Brown")
 combobox1.Add(
"Red")
 combobox1.Add(
"Green")
 combobox1.Add(
"Black")
 
End Sub

Sub Button1_Click




If ComboBox1.SelectedIndex = "Yellow" Then
Table1.BringToFront
End If

PanelTB.BringToFront

End Sub

Sub Button2_Click



End Sub
Like I said Im sure this is of no help.frusrtaning Im Sure.
Attached Files
File Type: zip rpmdos.zip (718 Bytes, 11 views)

Last edited by cdeane : 11-09-2008 at 08:55 PM.
Reply With Quote
  #6 (permalink)  
Old 11-09-2008, 09:20 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Here you have two possibilities to BringToFront your Tables according to the selected item, Button1, or index, Button2, in the ComboBox.

Best regards.
Attached Files
File Type: sbp rpmdosNEW.sbp (2.2 KB, 14 views)
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #7 (permalink)  
Old 11-09-2008, 09:35 PM
Knows the basics
 
Join Date: Aug 2007
Location: Arkansas
Posts: 68
Default

Sorry Klaus,I have 6.3
Reply With Quote
  #8 (permalink)  
Old 11-09-2008, 09:54 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Here is a version 6.30 file.
Attached Files
File Type: sbp rpmdosNEW.sbp (2.3 KB, 13 views)
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
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
ComboBox Value RandomCoder Basic4ppc Wishlist 7 11-18-2011 11:08 AM
ComboBox ceaser Questions (Windows Mobile) 2 08-25-2008 03:52 PM
ComboBox Raytracer Italian Forum 3 04-15-2008 04:15 PM
IgnoreKey in ComboBox? kyto Questions (Windows Mobile) 1 09-11-2007 04:51 AM
ComboBox propterty Scubaticus Basic4ppc Wishlist 2 06-28-2007 07:47 PM


All times are GMT. The time now is 03:11 AM.


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