The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 enter a variable

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
hlchlore Posted - 08/11/2006 : 10:00:01 AM
Hi every body!!

I seek to know how to write a script who allows me to post a question concerning the value of a variable and to seize then the entered variable .


3   L A T E S T    R E P L I E S    (Newest First)
Deanna Posted - 08/14/2006 : 04:46:29 AM
Hi, hlchlore.

What Mike has written for you is an Origin C program instead of a Labtalk script. You should use the Code Builder to compile it before executing. There is a chapter in the programming help file with the title of Code Builder User's Guide. You may refer to it if you need any help with the use of the Code Builder.

I would say that the most prominent difference between Origin C and Labtalk is that Origin C is a compiled language while Labtalk is a scripting language. You can use Labtalk scripts without compiling, while compiling is a MUST before running an Origin C program. There is a chapter titled LabTalk vs Origin C in the programming help file. You may take a look at it if you are interested.


Deanna
OriginLab GZ Office
hlchlore Posted - 08/14/2006 : 04:27:12 AM
Thanks a lot,

But i'd copy this script in my script window and
it said me that there is an error.
Can you explain me the difference between origin C program
and labtalk program
Mike Buess Posted - 08/11/2006 : 10:25:15 AM
In Origin 7.5 you can use Function: GetNBox...

#include <GetNBox.h>
double Value;
void run_GetNbox()
{
GETN_BOX(tr)
GETN_NUM(val, "Value", Value)
if(GetNBox(tr, "Enter a Value", NULL))
{
Value = tr.val.dVal;
printf("The value %g was entered.", Value);
}
}


Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 08/11/2006 10:26:23 AM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000