Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wizard form
Message
 
To
25/02/2006 07:38:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01098903
Message ID:
01099175
Views:
19
>m.stroeid=thisform.text1.value
> seek (m.storeid).....2
> if found()&& mean faster

Cut out some of the lines. No need to store it in a variable, no need for if found()
if seek(alltrim(thisform.text1.value))
       && You found it
    else
      && You didn't find it
    endif
>Also put controlsources in your texboxes .....3? how

Right-mouse on the texboxe, bring up the property sheet, and poit the controlsource of the textbox to the table field.

But you seem to be putting all this code in the same place? Why not have separate code for separate click event buttons.

Click event for the add button
Select myTable 
     append blank
Click event for the delete button
select myTable
     delete 
     thisform.refresh()
etc....

This way have no need for the ACT_FLAG variable to determine what the user is doing.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform