Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select
Message
De
25/05/2005 04:56:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Select
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01017388
Message ID:
01017388
Vues:
61
hi all,
any idea,help.
i try to insert a new item at mygrid if not found as under ,
this is the code, under grid2--->text1--->dblclick
    thisform.text3.value=thisform.grid2.column1.text1.value
    set exact on
    set near off 
  select * from temp where alltrim(upper(temp.typ)) == alltrim(upper(thisform.grid2..column1.text1.value)) and alltrim(upper(temp.mac1)) == alltrim(upper(thisform.grid1.column1.text1.value)) into array laResults
if _tally = 0
  select temp
     append blank in temp
     replace temp.typ with alltrim(upper(thisformM.text3.value))
  go top
    thisform.grid1.refresh
else
   =mesagebox("found.....")
endif
but if i insert ex..
mac1    typ
----    ---
aa       io1
aa       io2

if i want to insert io1 again i get result found
but if i change
mac1   typ
----   ---
dd     io2
i can insert io1
thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform