SilverScreen Solid Modeler

pm_double

pm_double

Previous topic Next topic  

pm_double

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pm_double ( char *message, double *value, int mandatory )

 

char   *message;       // prompt string

double *value;         // address of double to receive result

int     mandatory;     // mandatory entry flag

 

 




Synopsis

#include "silver.h"

 

The pm_double function adds a prompt for a double value to the current panel, with prompt specified by message . If mandatory is 1, a value must be entered for the item. If mandatory is 0, then the initial value can be accepted without change. After pm_execute , the resulting value is returned in value.

 

 

Parameters

message is a null-terminated string containing the prompt message. value is the address of a double that is to receive the result of the prompt. mandatory is an integer specifying whether entry for this field is mandatory or not.

 

 

Return Value

none.

 

 

Comments

The initial value for the field is the initial value of the double pointed to by value .

 

 

See Also

pm_execute, pm_integer, pm_text, pm_xyz

 

 

Example

C / C++ Code

 

 v = 10.0;

 pm_double ( "Height of tool", &v, 0 );