作者Joybo (差很多)
站内Programming
标题Re: 请问 VB的 iif指令
时间Thu Oct 4 00:09:51 2007
※ 引述《DRAGONLL (要研不要延)》之铭言:
: 若 A成立 则执行B 否则执行C
: 可以用 iif(A,B,C) 来写
: 那如果是若 A成立 则执行B (没有C这个指令 ) 那该怎写呢
: 实际指令是
: If Option1.Value = treu Then
: Text7.Alignment = 1
: End If
: 该怎用 iif 来表示??
Text7.Alignment = IIf(Option1.Value = True, 1, Text7.Alignment)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.134.60.246
1F:推 DRAGONLL:谢谢~! 140.120.6.242 10/04 11:57