From below test, I can't pass through VALID statement evaluation.
Thanks for any help.
Mario
******************************************
function listboxtest
local level_list:={"A","B","C"}
local user_level:=space(1)
local getlist:={}
@ 1 ,1,6,5 get user_level listbox level_list dropdown valid
!empty(user_level)
read
inkey(0)
return nil
**************************************
You might:
- initialize user_level to a member of the contents of level_list
- change your valid test to:
user_level $ level_list
Did you make a selection in the list, other than the space you
initially pushed in? Saying "I can't pass through VALID statement
evaluation" isn't quite enough information.
Failing that, you might try the black magic of reversing the order of
the valid and dropdown arguments, then not declaring user_level as
LOCAL when calling indirectly to yet a second system function.
David A. Smith
Yes David, I tried to select a value from the dropdown list.
Thanks,
Mario
> Yes David, I tried to select a value from the
> dropdown list.
And none of the other suggestions worked either? I always want just a
little bit more...
Yes or no here is fine.
David A. Smith
Selecting from the listbox and pressing Enter doesn't do anything. The
level_list is an array so the $ function didn't work.
Thanks,
Mario
I confirm, with November 2009 xHarbour.
Presetting user_level to "A" exits on second <Enter> with 100 or so
empty lines dumped to the screen before "inkey(0)" is executed.
Cursor is switched off
Setting the valid to acan( level_list, user_level) > 0, has no
improvement.
Reversing the order of dropdown and valid has no effect.
Better make a bug report.
David A. Smith
Thanks David. Already added to the bugreport.
Best regards,
Mario
Fixed after Changelog 1.6695
regards,
Eduardo
Many thanks Eduardo for your attention. The VALID condition is now
being evaluated successfully but I observed that number of rows of the
dropdown box when I press space bar is limited to 2?
Thanks and best regards,
Mario
Eduardo
Best regards,
Mario