Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparison amongst Grid cells
Message
From
13/11/2001 11:05:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/11/2001 10:28:40
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00580724
Message ID:
00580906
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform