Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparison amongst Grid cells
Message
De
13/11/2001 11:05:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/11/2001 10:28:40
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00580724
Message ID:
00580906
Vues:
28
>Hi Basoz,
>
>Thank you for your helpful suggestion?
>
>How about the works on Grid, or you have show me the works on Grid??
>
>
>Ransome
select column2field, column3field ;
 from (thisform.myGrid.recordsource) ;
 into array thisform.arrCheck

* Column2.text1.lostfocus
if recno() > 1 and ;
  Column2Field <= thisform.arrCheck[recno()-1,2]
* Prompt
  nodefault
  this.setfocus
else
  thisform.arrCheck[recno(),1] = Column2Field 
endif

* Column3.text1.lostfocus
if recno() < reccount()-1 ;
  Column3Field > thisform.arrCheck[recno()-1,2]
* Prompt
  nodefault
  this.setfocus
else
  thisform.arrCheck[recno(),2] = Column3Field 
endif
This is a quick idea code. You should take into account newly inserted ones would be negative and select might need an order by if index is in effect.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform