大哥们:
  这个case语句那错了?
case Questype of
 danxuanti:    DaXshow();
 duoxuanti:   begin    DuXshow();   getuseranswerofdaX();  end;
 tiankongti:   begin    Tianshow();   getuseranswerofduX();  end;
 panduanti:     begin    Panshow();   getuseranswerofpan();  end;
 else   break;
end;

解决方案 »

  1.   

    case Questype of
    Questype是什么类型的呢?它不能是字符串类型或是FLOAT这种非顺序类型的where selectorExpression is any expression of an ordinal type (string types are invalid) and each caseList is one of the following:A numeral, declared constant, or other expression that the compiler can evaluate without executing your program. It must be of an ordinal type compatible with selectorExpression. Thus 7, True, 4 + 5 * 3, 'A', and Integer('A') can all be used as caseLists, but variables and most function calls cannot. (A few built-in functions like Hi and Lo can occur in a caseList. See Constant expressions.)
    A subrange having the form First..Last, where First and Last both satisfy the criterion above and First is less than or equal to Last
    .A list having the form item1, ..., itemn, where each item satisfies one of the criteria above.
      

  2.   

    else break;  错了,break是用在循环语句里。