BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: Knott ที่ มิถุนายน 18, 2011, 11:31:56 AM

หัวข้อ: กำลังหัดทำ ue แล้วเจอ error แบบนี้ครับ
เริ่มหัวข้อโดย: Knott ที่ มิถุนายน 18, 2011, 11:31:56 AM
กำลังหัดเขียน ue ใช้ script นี้ครับ

var i : Integer;
begin

  i := GetFormInputValue(90);
 
 if i := 1 then
  begin
      CheckGroup91.Enabled := True;
  end else
  begin
      CheckGroup91.Enabled := False;
  end

end;

แล้วเจอ error ตามรูปครับ

ขอคำชี้แนะการแก้ไขด้วยครับ
หัวข้อ: Re: กำลังหัดทำ ue แล้วเจอ error แบบนี้ครับ
เริ่มหัวข้อโดย: pop_hosxp ที่ มิถุนายน 18, 2011, 11:37:05 AM
น่าจะเป็นแบบนี้ ลองดูก่อนนะครับ ผมยังไ่ม่ได้ run ดู

var i : Integer;
begin

  i := GetFormInputValue(90);
 
 if i = 1 then
  begin
      CheckGroup91.Enabled := True;
  end else
      CheckGroup91.Enabled := False;
  end;

end;


แล้วก็ดูตัว object 90 นั้น เป็น radio button หรือเปล่าด้วยนะครับ
หัวข้อ: Re: กำลังหัดทำ ue แล้วเจอ error แบบนี้ครับ
เริ่มหัวข้อโดย: Knott ที่ มิถุนายน 18, 2011, 11:43:18 AM
ได้แล้วครับ ขอบคุณครับ อ.pop_hosxp

ใช่ครับ เป็น Radio ครับ