Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in form
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Error in form
Divers
Thread ID:
00691324
Message ID:
00691324
Vues:
61
Hi,

I have been getting an error whenever I recompile all/build exe, coming from one of my forms: "Unable to find unknown AEMPLOYEES" - Locate/Ignore/ignore all/Cancel.
If I choose ignore, the EXE is built and the form works fine - however, I would really like to know why it gives the error/get rid of it.
The error is located in a custom method:
   select SEMPCODE,SNAME from EMPINFO where &cFilter into array aEmployees
   with ThisForm.lstEmployees
        .Clear
        if type('aEmployees')='U'
           wait 'No Employees found matching the selection criteria';
                window timeout 5
           return
        endif
        nTotalItems=(alen('aEmployees')/2)
        for x = 1 to nTotalItems
            .AddItem((aEmployees(x,1)),x,1)   && Either of these
            .ListItem(x,2)=(aEmployees(x,2))  && two lines cause the error
        next
        .Value=.List(1)
        .Refresh
   endwith     
It seems like aEmployees is being treated as an undefined function. if I comment out the .AddItem or .ListItem lines, the error disappears.

Any ideas?

TIA

Any
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform