|
![]() |
![]() |
version 2003
PA_Dial4DSetReal (dialog; variable; newValue)
Parameter | Type | Description | |
dialog | PA_Dial4D | → | Dialog reference |
variable | char* | → | Name of the variable to access |
newValue | double | → | New value of the variable |
Description
The routine
PA_Dial4DSetReal
sets the value of a variable whose name is
variable
to the value
newValue
. This command is preferred to the
PA_Dial4DSetVariable
call because it handles the type conversion for the developer.
By default,
variable
needs to be a null terminated C string. If you have previously called
PA_UsePStrings,
you must pass a Pascal string to the command.
By default,
variable
needs to use Macintosh characters set on Macintosh, and ANSI characters set under Windows. You can call
PA_UseMacCharacters
or
PA_UseAnsiCharacters
to specifically use Macintosh or ANSI characters.
In order that 4th Dimension knows it must redraw the dialog, all
PA_Dial4DSetxxx
routines must be squared by calls to
PA_Dial4DMarkVariable
and
PA_Dial4DRestoreVariable
.
Example
See
PA_Dial4DSetLong