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.Value property

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2007, 10:06 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 ComboBox.Value property

I bet the title just made you wonder....

I know there is no value Property....but there should be!!

I have a combobox in a form that is filled with the name of textboxes....
When I remove the selected index from the List, it gets removed but the text remains in the combobox....I've tryed various things to either make blanck, like unselected, or go to the index number imediatly before the one removed...

How to do it?

Edit:

Although not listed, is HAS a text property....

So its Fixed...
__________________
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!

Last edited by Cableguy : 06-30-2007 at 10:09 PM.
Reply With Quote
  #2 (permalink)  
Old 07-01-2007, 10:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The best way is:
value = ComboBox1.Items(ComboBox1.SelectedIndex)
Reply With Quote
  #3 (permalink)  
Old 07-01-2007, 02:06 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

But how to use it outside selection changed event, wre the value parameter is not passeed?
__________________
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
  #4 (permalink)  
Old 07-01-2007, 02:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can use it everywhere:
v = ComboBox1.Items(ComboBox1.SelectedIndex)
or
ComboBox1.Items(ComboBox1.SelectedIndex) = "abc"
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
Desktop - Change RightToLeft property Erel Code Samples & Tips 3 06-15-2009 06:53 PM
ComboBox Raytracer Italian Forum 3 04-15-2008 04:15 PM
Readonly property in the Textbox control bidibulle Basic4ppc Wishlist 14 11-16-2007 08:19 AM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 11:15 AM
property settin in the pda Cableguy Basic4ppc Wishlist 3 05-10-2007 03:40 PM


All times are GMT. The time now is 08:29 AM.


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