![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a calc field for my recipients and I want it to ignore empty fields. There are 5 repetitions. and it looks like this: database::resource[1] & "@xxxx.com" & database::resource[2] & "@xxxx.com" & database::resource[3] & "@xxxx.com" & database::resource[4] & "@xxxx.com" & database::resource[5] & "@xxxx.com" & How do I get this script to ignore the lines if it is empty? As it stands I get "@xxxx.com" in my recipient line for each empty repetition. |
#3
| |||
| |||
|
|
"dvfx" <damien... (AT) gmail (DOT) com> schreef in berichtnews:b4d41097-9070-4cff-bbfa-3e81bc638858 (AT) k25g2000prh (DOT) googlegroups.com... I have a calc field for my recipients and I want it to ignore empty fields. *There are 5 repetitions. and it looks like this: database::resource[1] & "@xxxx.com" & database::resource[2] & "@xxxx.com" & database::resource[3] & "@xxxx.com" & database::resource[4] & "@xxxx.com" & database::resource[5] & "@xxxx.com" & How do I get this script to ignore the lines if it is empty? *As it stands I get "@xxxx.com" in my recipient line for each empty repetition. You really should chuck out those repeating fields. They are a paint in the but to work with. Only use them for GUI graphics. Then as and when you really understand their limitations you might reconsidder using them. -- Keep well / Hou je goed Ursus |
#4
| |||
| |||
|
|
database::resource[1]& "@xxxx.com"& database::resource[2]& "@xxxx.com"& database::resource[3]& "@xxxx.com"& database::resource[4]& "@xxxx.com"& database::resource[5]& "@xxxx.com"& |
#5
| |||
| |||
|
|
On 6/17/2010 8:54 PM, dvfx wrote: database::resource[1]& *"@xxxx.com"& *> *database::resource[2]& *"@xxxx.com"& *> *database::resource[3]& *"@xxxx.com"& *> *database::resource[4]& *"@xxxx.com"& *> *database::resource[5]& *"@xxxx.com"& case( not isempty(database::resource[1]), database::resource[1] & "@xxxx.com") & ¶ & case( not isempty(database::resource[2]), database::resource[2] & "@xxxx.com") & ¶ & case( not isempty(database::resource[3]), database::resource[3] & "@xxxx.com") & ¶ & case( not isempty(database::resource[4]), database::resource[4] & "@xxxx.com") & ¶ & case( not isempty(database::resource[5]), database::resource[5] & "@xxxx.com") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg FM Professional Solutions, Inc. * *Los Angeles FileMaker Certified Developer Associate Member, FileMaker Business Alliance |
#6
| |||
| |||
|
|
On Jun 18, 1:57*pm, Howard Schlossberg how... (AT) nospam (DOT) fmprosolutions.com> wrote: On 6/17/2010 8:54 PM, dvfx wrote: database::resource[1]& *"@xxxx.com"& *> *database::resource[2]& *"@xxxx.com"& *> *database::resource[3]& *"@xxxx.com"& *> *database::resource[4]& *"@xxxx.com"& *> *database::resource[5]& *"@xxxx.com"& case( not isempty(database::resource[1]), database::resource[1] & "@xxxx.com") & ¶ & case( not isempty(database::resource[2]), database::resource[2] & "@xxxx.com") & ¶ & case( not isempty(database::resource[3]), database::resource[3] & "@xxxx.com") & ¶ & case( not isempty(database::resource[4]), database::resource[4] & "@xxxx.com") & ¶ & case( not isempty(database::resource[5]), database::resource[5] & "@xxxx.com") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg FM Professional Solutions, Inc. * *Los Angeles FileMaker Certified Developer Associate Member, FileMaker Business Alliance Great, that worked well! |
![]() |
| Thread Tools | |
| Display Modes | |
| |