Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Button group
Message
From
10/05/2005 11:46:12
 
 
To
05/05/2005 17:25:40
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01011123
Message ID:
01012459
Views:
16
Sorry, took so long getting back to you, I took a 4-day weekend.

did you go into the refresh method of the textbox or the form and put in the code for setting the enabled equal to .T. for that textbox?

>>I am still considered a newbie - for about 8 years now.
>
>That's about seven years and 11 months longer than me. :) I've been stuck in FPD 2.5 and FPW 2.6 forever, and am just now beginning to use the old copy of VFP 6.0 that we've had laying around. I'm really liking it, and am sure I'll like it even more the more I learn about it.
>
>>I would build the form through wizard.
>
>Did that.
>
>>
>>Modify it
>>  by added a property to the form called - say vSearchvalue
>>     so you can call it in methods by thisform.vSearchvalue
>>  then added the textbox
>>   in the valid code of the textbox, set a variable to the value of the textbox,
>>      then do a locate on the table for that value
>>            - I have my stuff set up for one textbox for one field,
>>                not sure how to do multiple fields for one textbox.
>>  remember to do a thisform.refresh after the locate.
>>
>
>Did all that too. I made a textbox on the form and gave it the Name "vSearchvalue" and also put "vSearchvalue" in the ControlSource. In the Valid Event, I entered:
>
> searchpart=allt(vSearchvalue)
> locate for cards.part_no=searchpart
> thisform.refresh
>
>When running the form, the new textbox isn't accessible unless I first click the Edit button. I clicked "Edit" and entered a part number into the box. When I tabbed out of the box, the program jumps to the part number I entered. If I click "Save," it stays there. If I click "Revert," it goes back to the part I was previously on. I like that.
>
>But what I need to correct is when the new textbox is available. I need it to be available WITHOUT first clicking "Edit" and unavailable after "Edit" has been clicked.
>
>Getting closer, it seems, but not quite there. Is there anything more on that map of yours? :)
>
>John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform