Using @menu Problem

Nancy Palmquist nlp at vss3.com
Fri Aug 28 10:12:57 PDT 2009


Harold wrote:
> Kenneth Brody wrote:
>   
>> Harold wrote:
>> [...]
>>     
>>> The problem is that when I use @menu the program fails when it hits 
>>> the line of code that has "screen 1,20."  When the program hits that 
>>> line, the cursor goes to the center bottom of the screen, in the 
>>> "Enter Selection >" area and is hung up.
>>>       
>> [...]
>>
>> You are not in update mode when in @MENU processing.  You need to go 
>> into update mode first, and take it from there.  While there are 
>> numerous ways to do this, an easy way is to have your @MENU processing 
>> do PUSHKEY "U" and END, and then continue what you want to do in @UPDATE 
>> processing.
>>
>>     
>
> Hi Ken,
>
> Thanks for your reply.
>
> I tried what you suggested and put in "pushkey "u";end."  It worked, but up 
> popped Enter "Index Search Data" that I am trying to avoid.  I want to have 
> the screen show an input popup, such as:
>
> input popup ("5","5") na "To Add A New Shipmate Enter 3 OR 4 Letters Of 
> Last Name"
>
> How do I not use the filepro input popups?
>
> Harold
>
>
>   
Harold,

I always picture myself at the filePro selection screen when I use 
@menu.  The trick is to use pushkey to supply the information that you 
would need on the normal screens.

For example, If i have a option on my @menu that says:  Find by customer 
name - and I have an index on customer name called index A.

What I do is a popup and ask for the name they want, then do the following:

pushkey "4A"{custname{"[ENTR]U"

This will go to Index Selection, index A, enter the customer name they 
supplied, press ENTER to move to the record then U to update.

If you think of the function like this, the @menu logic is easy.

If you run a usermenu both on the @menu level and from a record, it just 
takes one more step to make both work.

If @RN ge "1"
then pushkey "X"   ' first to get back to the filePro selection menu 
then do the other pushkey to go where you want.

Nancy


> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>   


-- 
Nancy Palmquist 		MOS & filePro Training Available
Virtual Software Systems	Web Based Training and Consulting	
PHONE: (412) 835-9417		   Web site:  http://www.vss3.com



More information about the Filepro-list mailing list