| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Wed Dec 01, 2004 1:42 pm Post subject: BitCombo Saving content of |
|
|
Hi,
Can someone help me work out how to save the selected item from a bitcombo box?
I have this bitcombo with three options in, option 1, option 2 and option 3.
When the user presses save the program should save the item in an ini file. I have tried using the inifile write,something,something,@dlgtext(bitcombo1)
but it does not seem to save the option. I then need a way to set the bitcombo to the result that was saved before.
Is this possible? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Dec 01, 2004 2:50 pm Post subject: |
|
|
I don't use VDS 5, but if I'm not mistaken, the BitCombo is the same as
the COMBO. To access an individual item in a COMBO use the list function,
@item(BitComboName) which should return the selected item.
Using @dlgtext(BitComboName) will only return the text that is in the
edit field of the BitCombo, if it has that style.
Check the VDS 5 help file for the @item() function.
I hope this helps, at least a little.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Dec 01, 2004 3:00 pm Post subject: |
|
|
Darn Posted too slow  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Wed Dec 01, 2004 4:06 pm Post subject: |
|
|
Oh my god, I am so stupid....
Thank you so much guys. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Dec 02, 2004 3:57 am Post subject: |
|
|
I seen other ways of getting items out of bitcombos - etc.. by way I API calls not long ago from a VDS world download, but I must have lost it somewhere, cant find it.
Thats probably over kill anyways. |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Dec 02, 2004 5:26 pm Post subject: |
|
|
Yes, using the @sendmsg() you can do this, but much easier to just use the
@item() instead. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|