Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Result:-GetData - get the data stored in a column of the current row
Calling Sequence
result:-GetData( index, opt )
Parameters
result
-
Result module
index
string or integer; the column from which to get the data
opt
(optional) equation of the form stream=boolean
Description
GetData returns the data element in the row indicated by the row cursor and in the column index.
GetData accepts one optional argument that affects the format of the returned value.
stream = true or false
For some large binary and character elements it may be inconvenient or even impossible to transfer the entire object to Maple at once. By passing stream=true, GetData will return a DataInterfaceStream module instead of the object. The DataInterfaceStream module allows the data to be retrieved in pieces. stream=true is valid only for elements of type CHAR, VARCHAR, LONGVARCHAR, BINARY, VARBINARY, and LONGVARBINARY.
If index is an integer, it is the index of the column in the table. If index is a string, then it is the name of the column.
If the current row is not a data row, then an error is raised.
Using GetData and Next is the preferred method for walking the data of a Result module.
Examples
Create a Result.
[ 1..127 1-D Array ]
[ Data Type: integer[1] ]
[ Storage: rectangular ]
[ Order: C_order ]
See Also
Database, Database[DataInterfaceStream], Database[Result], Database[Result][GotoRow], Database[Result][Last], Database[Result][Next], Database[Result][Previous], Database[Result][UpdateData], Database[usage]
Download Help Document