Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activecontrol in grid & activecolumn in grid.valid
Message
From
24/09/1998 03:14:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Activecontrol in grid & activecolumn in grid.valid
Miscellaneous
Thread ID:
00140243
Message ID:
00140243
Views:
81
Hi folks,
Is there an easier way to determine active control in grid ? This code is from beforerowcolchange and already verified it's a rowchange (nColIndex has column value) :
with this
  if !empty(.columns(nColIndex).dynamiccurrentcontrol)
     cCurrentControl = ;
        eval(.columns(nColIndex).dynamiccurrentcontrol)
  else
     cCurrentControl = .columns(nColIndex).currentcontrol
  endif
  with evaluate(".columns(nColIndex)."+cCurrentcontrol)
	.value = .value && So we can evaluate table ruleexpression
  endwith
endwith
And next problem. Is there a way to determine last activecolumn in grid.valid, w/o saving it to some property ? MTIA
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
Next
Reply
Map
View

Click here to load this message in the networking platform