Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Bool(StringGrid1.Objects[4,i])をtrueにセットしたいのですが



Permlink Replies: 2 - Last Post: Aug 16, 2016 9:49 PM Last Post By: Hideyuki Oya
Hideyuki Oya

Posts: 87
Registered: 6/6/07
Bool(StringGrid1.Objects[4,i])をtrueにセットしたいのですが
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 15, 2016 11:24 PM
if Bool(StringGrid1.Objects[4,i]) then begin
...;
end

という使い方はできるのに、Bool(StringGrid1.Objects[4,i]) := TObject(true);とか
Bool(StringGrid1.Objects[4,i]) := true;
とかはできないのでしょうか?
igy kk

Posts: 147
Registered: 9/11/03
Re: Bool(StringGrid1.Objects[4,i])をtrueにセットしたいのですが
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 16, 2016 4:09 AM   in response to: Hideyuki Oya in response to: Hideyuki Oya
Bool(StringGrid1.Objects[4,i]) に格納しようとせず、
StringGrid1.Objects[4,i] に格納するのは、いかがですか?
Hideyuki Oya

Posts: 87
Registered: 6/6/07
Re: Bool(StringGrid1.Objects[4,i])をtrueにセットしたいのですが
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 16, 2016 9:49 PM   in response to: igy kk in response to: igy kk
igy kkさん、いつもありがとうございます。
StringGrid1.Objects[4,i] := TObject(true);
または
StringGrid1.Objects[4,i] := TObject(false);
でうまくいきました。

igy kk wrote:
Bool(StringGrid1.Objects[4,i]) に格納しようとせず、
StringGrid1.Objects[4,i] に格納するのは、いかがですか?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02