Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert at mygrid
Message
De
16/04/2005 03:20:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Insert at mygrid
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01005415
Message ID:
01005415
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform