Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert at mygrid
Message
From
16/04/2005 03:20:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Insert at mygrid
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01005415
Message ID:
01005415
Views:
70
hi all,
i try to insert items at my grid via this code under
if i choise first item ,it insert first item no problem,
but if i choice item number2, it replace 3 items at mygrid,
i want insert just the item i choices form another grid,
and it replace the items i insert befor,mean if !found not work

any help
thisform.text12.value=THISFORM.GRID2.column1.text1.VALUE

LOCATE FOR temp.typ= (thisform.text12.value ) 
? thisform.text12.value
IF !FOUND()
    select 3&& mytable temp, without select 3 i get error message as cursour cannot update
      APPEN BLANK 
        with thisform.Grid1
             REPLACE temp.typ WITH thisform.text12.value
        GO top
            .Recordsource = .Recordsource
       ENDWITH
        
         thisform.grid1.refresh
ELSE
   MESSAGEBOX("found")
endif
thanks
Next
Reply
Map
View

Click here to load this message in the networking platform