Function in a Browse->Fields

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
ohaldi
Posts: 21
Joined: Mon Mar 23, 2009 12:00 pm

Function in a Browse->Fields

Post by ohaldi »

Hello
How can I put a function in a Browse Fields ?
I only like to show a "*" if the Memo is not empty.

I tried this, but do not work:

DEFINE BROWSE Brow_Adr
....
FIELDS { "ADRESSE->NAME" , "ADRESSE->NAME_KZ" , "ADRESSE->ADR_NR" , "ADRESSE->PLZ_ORT" , {|| if(Empty(ADRESSE->MEMO)," ","*") } }

Many thanks in advance for any help.
Regards
Otto
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Function in a Browse->Fields

Post by gfilatov »

ohaldi wrote:Hello
How can I put a function in a Browse Fields ?
I only like to show a "*" if the Memo is not empty.

I tried this, but do not work:

DEFINE BROWSE Brow_Adr
....
FIELDS { "ADRESSE->NAME" , "ADRESSE->NAME_KZ" , "ADRESSE->ADR_NR" , "ADRESSE->PLZ_ORT" , {|| if(Empty(ADRESSE->MEMO)," ","*") } }

Many thanks in advance for any help.
Hello Otto,

Try this

FIELDS { 'ADRESSE->NAME' , 'ADRESSE->NAME_KZ' , 'ADRESSE->ADR_NR' , 'ADRESSE->PLZ_ORT' , 'ADRESSE->(if(Empty(MEMO)," ","*"))' }

I hope that helps. :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
ohaldi
Posts: 21
Joined: Mon Mar 23, 2009 12:00 pm

Re: Function in a Browse->Fields

Post by ohaldi »

, 'ADRESSE->(if(Empty(MEMO)," ","*"))'
Work very well, Thanks
Regards
Otto
Post Reply