Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing data to unbound OLEcontrol (MSGRAPH) 2

Status
Not open for further replies.

prangster

MIS
Sep 14, 1999
18
0
0
US
The VFP Developer's guide shows a method of using MSGRAPH through a bound OLE control (using APPEND GENERAL). Is there a way to do the same using an UNbound OLE control? Specifically how do you pass data programmatically to the control?<br>

 
Use the .Row, .Column and .Data properties like this<br>
<br>
with ThisForm.Chart<br>
select results<br>
<br>
.RowCount = min(m.reccnt, 48)<br>
.ColumnCount = 1<br>
<br>
r = 1<br>
scan for !empty(noshipment)<br>
scatter memvar<br>
<br>
if r &lt;= .RowCount<br>
.Row = r<br>
.Column = 1<br>
.Data = m.cusper<br>
.DataGrid.RowLabel(r,1) = alltrim(str(m.noshipment))<br>
endif <br>
<br>
r = r + 1 <br>
endscan<br>
endwith<br>

 
Thank you for the information.<br>
<br>
Where is the information about the properties (.row, .datagrid.rowlabel, etc.) located? That is, if I want to explore other OLE objects (or MSGRAPH more completely) how do I find out about the associated properties and methods?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top