Extracting Value from FlexGrid?

weisi
01-06-2005, 09:52 AM
May I know whether is it possible to extract the value from a FlexGrid cell for calculation? Any examples? Thank you!

:)
Weisi

VBDudley
01-06-2005, 10:42 AM
Take a look at the Text property of the MSFlexGrid control in MSDN. The example should give you what you need.

Flyguy
01-07-2005, 02:30 AM
More practical is the TextMatrix() property, because you don't have to set the .Col/.Row properties first, but you specify them in as parameters for the property.

weisi
01-07-2005, 05:06 AM
Thanks for the reply! Any examples on the TextMatrix()?

:)
Weisi

Flyguy
01-07-2005, 05:41 AM
Have a look at the .. thread for a dozen examples

rungss
01-07-2005, 09:46 AM
var1=cint(msflexgrid1.textmatrix(row1,column1))
var2=cint(msflexgrid1.textmatrix(row2,column2))

var3=var1+var2
and so on

weisi
01-09-2005, 09:00 AM
Thanks for all the replies! Im using the flexgrid to display the information such as time and names whenever a tag is being read by the reader. So is it possible to extract the values from the flexgrid for calculation? The application is always running, so all the action and calculation will be done automatic.

:)
Weisi

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum