Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select
Message
From
25/05/2005 04:56:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Select
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017388
Message ID:
01017388
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform