If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > selecting data from a flexgrid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-04, 14:59
jhuck jhuck is offline
Registered User
 
Join Date: Jan 2004
Posts: 53
selecting data from a flexgrid

I am trying to click on a field in a flexgrid and transfer the data in that field to a string. Is this possible,, I have a weird feeling that it wont be easy. An help/code is greatly appreciated.

Thanks
__________________
Jason
Reply With Quote
  #2 (permalink)  
Old 02-10-04, 11:38
accarvajal accarvajal is offline
Registered User
 
Join Date: Feb 2004
Location: Cali - Colombia
Posts: 16
hi!

it's EASY!!

if you are using visual basic:

declares Click() event, and writes instructions like this:

dim var as string
var = MSFlexGrid1.TextMatrix(MSFlexGrid1.row, MSFlexGrid1.col)

In opposite situation:

MSFlexGrid1.TextMatrix(MSFlexGrid1.row, MSFlexGrid1.col) = var

this assigns the 'var' value to the cell.


I hope help u


Aldemar
__________________
A.C.C.
Reply With Quote
  #3 (permalink)  
Old 02-10-04, 11:45
accarvajal accarvajal is offline
Registered User
 
Join Date: Feb 2004
Location: Cali - Colombia
Posts: 16
hi!

it's EASY!!

if you are using visual basic:

declares Click() event, and writes instructions like this:

dim var as string
var = MSFlexGrid1.TextMatrix(MSFlexGrid1.row, MSFlexGrid1.col)

In opposite situation:

MSFlexGrid1.TextMatrix(MSFlexGrid1.row, MSFlexGrid1.col) = var

this assigns the 'var' value to the cell.


I hope help u


Aldemar
__________________
A.C.C.
Reply With Quote
  #4 (permalink)  
Old 02-10-04, 11:54
jhuck jhuck is offline
Registered User
 
Join Date: Jan 2004
Posts: 53
Thanks So much,, this worked for exactly what I wanted to do!!!!!!!!


Thanks Again
__________________
Jason
Reply With Quote
  #5 (permalink)  
Old 02-10-04, 14:13
accarvajal accarvajal is offline
Registered User
 
Join Date: Feb 2004
Location: Cali - Colombia
Posts: 16
It's a pleasure to help u
__________________
A.C.C.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On