frankyberry
Programmer
I originally posted this in the wrong forum...Sorry.
using CR 8.
When I use the below formula, it appears that the formula returns a null, so I'm using the IsNull() to trap it.
If I comment lines 4 & 5, I return "N/A". If I don't it continues to return a null...
any ideas??
Let me elaborate on what I want...
The array Places may contain a particular location, if it does, I want it to display "Y", else "N" but if the field {VW_GEO.LOCATIONS} is null, I want it to display "N" as well...
Here is my formula that handles everything fine except nulls...
using CR 8.
When I use the below formula, it appears that the formula returns a null, so I'm using the IsNull() to trap it.
If I comment lines 4 & 5, I return "N/A". If I don't it continues to return a null...
any ideas??
Code:
whilereadingrecords;
StringVar x;
StringVar Array Places;
Places[UBound(Places)] := {VW_GEO.LOCATIONS}; //Line 4
Redim Preserve Places[UBound(Places) + 1]; //Line 5
If IsNull({VW_GEO.LOCATIONS}) Then
x := "N/A"
Let me elaborate on what I want...
The array Places may contain a particular location, if it does, I want it to display "Y", else "N" but if the field {VW_GEO.LOCATIONS} is null, I want it to display "N" as well...
Here is my formula that handles everything fine except nulls...
Code:
whilereadingrecords;
StringVar x;
StringVar Array Places;
Places[UBound(Places)] := {VW_GEO.LOCATIONS}; //Line 4
Redim Preserve Places[UBound(Places) + 1]; //Line 5
//If IsNull({VW_GEO.LOCATIONS}) Then
// x := "N/A"
If "Store" in Places Then
x := 'Y'
Else
x := 'N'