Normal Topic Combo box getting garbage - SOLVED (Read 674 times)
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Combo box getting garbage - SOLVED
May 12th, 2010 at 3:37pm
Print Post Print Post  
I have three combo boxes, all behaving in the same manner.
Code is on Entry...PopUp box comes up as desired, values are shown as desired, selection is made, and combo box is filled with garbage.

Here is an image of OnEntry to the empty element:


Here is an image after selection was made, any choice gives similar results:


Here is the code:
Code
Select All
IF @ISBLANK(GradedBy) THEN {
	POPUPSELECTPOSITION(4, @XPos(GradedBy), @YPos(GradedBy))
	GradedBy = @USERSELECT("SL,CJ,CD,LK,NB")
	} 



If I copy and paste the resulting value, this is the typical result, alpha characters with CTL chars:
~^A^K^I^CSE
The resulting value is saved in the table, not the selected value.
Combo Box has same values in ToolTip and Restricted properties as listed for the PopUp list.

Any idea on what is happening?
« Last Edit: May 12th, 2010 at 6:52pm by Bob_Hansen »  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Combo box getting garbage
Reply #1 - May 12th, 2010 at 4:46pm
Print Post Print Post  
There is a very specific bug with @Userselect. It's fixed and the fix will be in the next release. Meanwhile, since UserSelect, @XUserSelect, @PopupMenu, and @PopupChoiceList don't do this, you can easily work around it if you can't wait for the release by using one of these other commands.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Combo box getting garbage
Reply #2 - May 12th, 2010 at 5:00pm
Print Post Print Post  
Are you using ComboBox with UserSelect? I thought Userselect will be used with text box otherwise it will be duplicating the functions of providing list for selection.  Do you have any list in the Combobox for selection?
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Combo box getting garbage - SOLVED
Reply #3 - May 12th, 2010 at 5:09pm
Print Post Print Post  
Mark this one as solved, thanks to Erica and Bharat.

Good do know about the bug, yes I can do a work around. . . . . .

And the work around is . . . . . .

provided by Bharat...I had never put values into the Combo Box Embarrassed  I just created a PopUp list and ran with it.

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged