Navigation:  Reference > Detailed Function Description > Working with DPlot Documents >

FNDPlot_getcurdat

 

Previous pageReturn to chapter overviewNext page

 

DEF FNDplot_getcurdat(INTEGER Doc_num,Curve,REAL Curvedat(*))

!

! Retrieve curve data from 2D curve and stores in in HTBasic REAL array

!  Please note: You can retrieve a maximum of 32767 characters (not curve points)

!

!  INPUT:  Doc_num     = DPlot Document number from which we want to retrieve data

!          Curve       = Desired curve number from which we want to retrieve data

!  OUTPUT: Curvedat(*) = Data point pairs from the curve in the form:

!                         X1,Y1

!                         X2,Y2   .. etc.

!  Return value: Returns number of transfered point pairs if it was successful.

!                Returns negative number which represents the number of points

!                which fitted into the data array (but actual number of points

!                is larger). Function returns 0 if it failed completely

 

FNDplot_getcurdat  retrieves 2D curve data directly from a DPlot document and stores it into Curvedat(*).