Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabled txt boxes?
Message
From
07/06/1999 14:44:10
 
 
To
07/06/1999 14:40:07
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00227143
Message ID:
00227150
Views:
25
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform