Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabled txt boxes?
Message
De
07/06/1999 14:44:10
 
 
À
07/06/1999 14:40:07
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227143
Message ID:
00227150
Vues:
26
Is the current control bounded to the Man table? If so, I don't know why it worked in 5, but the Seek() will move the pointer to EOF when the value is not found, causing the control to be disabled.

You can use the new IndexSeek() function instead.

>I have a form that has been working great that was developed on 5.0a, and now that I have upgraded to 6.0 it is giving me some problems.
>
>When I started out the form kept on crashing fox, so I rebuilt the form from scratch. That fixed the crashing problem. However, now I am having txtBoxes that are bound to a table go disabled when they did not do this on 5.0.
>
>I have a txt box on the form that has the following code in the LostFocus event;
>
>SELECT man
> SET order to column1
> IF ! seek(UPPER(alltrim(this.value)))
> MESSAGEBOX("That part is not on Record")
> nodefault
> this.setfocus
> thisform.refresh()
> ENDIF
>
>What is happening is that when a number is not found the txtBoxes on the form become inactive. This did not happen in 5.0 and was a surprise for me. Why is fox disabling these txtBoxes when it didn't in the older version?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform