Re[2]: why isChecked(id)

new topic     » topic index » view thread      » older message » newer message

D> Aku wrote:

>> why in win32lib use isChecked(id).
>> I think it is better to use getCheck(id) because
>> there is setCheck(id).

D> Good point. I think the main reason was that it mirrored the VB function,
D> but I'm too lazy to verify that. 'is' makes it clear that a boolean value is
D> returned, and it reads more clearly as:

Even in VB no isChecked. in VB we use check1.check.

and I have suggestion again but it will break all code:

  replace: setText(edit1, "Hello" & getText(edit2))
           if isChecked(check1) then setCheck(check1,0) end if
           
  to: Text(text1, "Hello" & text(text2))
      if check(check1) then Check(check1,0) end if

  because it saves typing

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu