I think there have been some problems with using array indexes in digits definitions (correct me if I'm wrong) so it might be wiser to do the following:
Code:
var digits_age;
var digits_height;
var digits_weight;
// etc.....
Panel briefing_pan
{
bmap = "PatientBriefingPanel.bmp";
button(680, 600, "NextOn.bmp", "NextOff.bmp", "NextOn.bmp", next2, NULL, NULL);
layer = 5;
red = 0;
green = 0;
blue = 0;
digits(433, 250, 6, arial_font, 1, digits_age);
digits(108, 285, 6, arial_font, 1, digits_height);
digits(450, 285, 6, arial_font, 1, digits_weight);
............... etc
And then have a starter function that constantly updates these values:
Code:
starter update_digits()
{
while(1)
{
digits_age = age[currentPatient];
digits_height = height[currentPatient];
digits_weight = weight[currentPatient];
See if that works any better.