>I got a big problem:
>User wants to see all of the items he enters for a certain
>order, just at run time, which means the number of items
>he enters will never known before compiler-time unitll
>I was planing to let the user use FIELD to enter the items
>and at the same time a LIST shows the context of what he
>enters for the moment, but the LIST only accepts the fix
>sized record filed from the table, that means I have to
>know the number of items before run-time.
>If use another browse window to display all the items user
>has entered for the current order, how to do that so that
>the input screen can communicate with the browse window ?
>I am using FoxPro 2.5 on Mac.
>Your help is highly appreciated!
when creating an order file, you should have a parent table
that contains all common info that relates to the order.
You should have multiple child records that contain one record
for each item in the order. You need a common field like the
order number in the child records to tell what record in the table
record they belong to.
Put a list box on the main screen that contains all the fields
in the child record that you want to display. All fields will
have to converted to character fields.
For example: orderno+' '+item_desc+' '+str(units,7)+' '+str(price,7,2)
All this can entered in the field box. To show only the items in the
list box that belong to an order seleect the child table and
set filter to child.orderno=parent.orderno.
This should solve your problem.