T O P I C R E V I E W |
LabTalk user |
Posted - 09/15/2010 : 7:11:49 PM Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR3 Operating System: XP
Below is the Origin C function and the error message I am getting with it. Can anyone help?
#include <Origin.h>
////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////// // Include your own header files here.
#include <string.h> #include "C:\Program Files\OriginLab\Origin81\OriginC\System\data.h" //#include "data.h"
//////////////////////////////////////////////////////////////////////////////////// // Start your functions here.
double maximum (string ds_name) { // Assumes ds_name exists and contains data Dataset dsA(ds_name); double dMax; dMax = max(dsA); return (dMax); }; maximum (string ds_name) { Dataset dsA(ds_name); double dMax; dMax:name too long, must be less then 42 characters! #Command Error!
Thanks! |
1 L A T E S T R E P L I E S (Newest First) |
Penn |
Posted - 09/15/2010 : 10:06:25 PM Hi,
Your code ends with };, right? The semicolon ; is not needed. I am not sure how you run this function, could you please provide more details about how you use this function? From the error message, maybe you are using some variable or constant that is more than 42 characters.
Penn |
|
|