customFormat Livebindings Couldn’t find ifthen

Asked

Viewed 147 times

0

I’m trying to use an inverted livebindigs, that is, I have a Boolean field that comes from the database and I have to make visible a button when it comes false.

I’m putting in the customformat

ifthen( owner.fieldbyname('tem_movimentacao').asboolean,false,true );

but is released an Exception "Evalerror in lpfVisible: Couldn’t find ifthen."

1 answer

1


The function must be typed with upper and lower case letters

IfThen( owner.fieldbyname('tem_movimentacao').asboolean,false,true );
  • A legal option to avoid this type of error in the future is to go to Options > Formatter > Delphi > Capitalization and set Capitalization of other words to As first occurrence. So the next cases will be automatically adjusted when pressing Ctrl+D

  • Taking advantage of @Hagahood’s topic, is it possible to treat Customformat in execution mode?... I created a topic for this but they didn’t solve my doubts. http://answall.com/questions/155978/t%C3%Adtulo-nos-campos-do-listview

Browser other questions tagged

You are not signed in. Login or sign up in order to post.