Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box Popup - Changing Available Items in the List
Message
From
25/09/2002 14:03:33
 
 
To
25/09/2002 13:46:11
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00704381
Message ID:
00704391
Views:
19
Sheesh! Too long since I've looked at FPD26 really well. Chalk it up to a brain cramp! I figured it out. Pretty simple it was too. :o) For lurkers, I put the below code in the m.repfrm VALID and the m.whatorder WHEN and it works:
* m.pol_repfrm VALID
FUNCTION _0ru0txux7     &&  m.pol_repfrm VALID
#REGION 1
IF m.pol_repfrm = "Policy Summary"
	pol_group    = '       '
	pol_group(1) = 'COMPANY'
	SHOW GETS
ELSE
        *Restrict the order by popup to 'name' only if labels are selected
	IF "LABELS" $ UPPER(m.pol_repfrm)
		pol_group    = '       '
		pol_group(1) = ''
		m.whatorder = 'NAME'
		SHOW GETS
	ELSE
		SHOW GETS OFF
	ENDIF
ENDIF

*m.whatorder WHEN included in get statement below
@ 15,25 GET m.whatorder ;
	PICTURE "@^ NAME;POLICY#;EFFECTIVE;EXPIRATION" ;
	SIZE 3,14 ;
	DEFAULT "NAME" ;
	WHEN m.criteria .and.  ! "LABELS" $ UPPER(m.pol_repfrm)
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform