Range Specification
The following methods convert range specifications.
|
Method |
Purpose |
|
|
Converts a range specification, e.g. 'A1..C5', into a CGXRange object, e.g. CGXRange(1,1,5,3). |
|
|
Converts a CGXRange object, e.g. CGXRange(1,1,5,3), into a range specification, e.g. 'A1..C5'. |
Keep in mind the following points about these range specification methods:
SetRows(), SetCols(), or SetTable() for specifying the range. Use only plain cell ranges.
CGXRange rg;
TextToRange((_T("A1..C5"), rg));
RangeToText(). For example:
CString s;
CGXFormulaSheet::RangeToText(CGXRange(1,1,10,4),
s.GetBuffer(20), 20);
s.ReleaseBuffer();
You can use string functions to convert absolute
See Cell Referencing in Objective Grid for more information about absolute and relative cell references. See Ranges for more information about ranges.