jcrawford08
Technical User
Hi all,
CR XI, SQL environment:
I've narrowed down an issue I'm having with a string formula. Essentially, I am re-sorting a comment field to show what the data means, address line, csz line, etc.
One portion, the fourth paragraph of it, simply has three characters to choose from (5,p, m); depending on the situation, a user may have to enter, one, two, or all three of them.
I have a stringvar set up to identify the section of the array this data will be entered into:
stringvar desig1:=split({RV_Practitioner_Office_TaxID.Comments},chr(13))[4];
and a stringvar to indicate the needed text;
stringvar desigall;
Then in the formula I have it referenced as a case select indicating which one of the cases it needs to show:
select desig1
case "5":
desigall:="5% or More Ownership Interest"
case "p":
desigall:="Partner"
case "m":
desigall:="Managing Control"
case "pm":
desigall:="Partner/Managing Control"
case "5m":
desigall:="5% or More Ownership Interest/Managing Control"
case "5p":
desigall:="5% or More Ownership Interest/Partner"
case "5pm":
desigall:="5% or More Ownership Interest/Partner/Managing Control"
default:
desigall:="Incorrect Data Entered"
Unfortunately, when I reference it later in the formula - in the display portion - it is only giving me the default information,"Incorrect Data Entered", for some reason it is not evaluating what my variable actually equals... I tried setting it up to use the case select based on the array section, but that didn't work either; I also tried it with the more cumbersome if/then statements - also to no avail.... any ideas?
And the data I placed in the field (in the correct place ) is 5pm....
Thanks!
Not in word only, but in deed also... 1Jn3:18
CR XI, SQL environment:
I've narrowed down an issue I'm having with a string formula. Essentially, I am re-sorting a comment field to show what the data means, address line, csz line, etc.
One portion, the fourth paragraph of it, simply has three characters to choose from (5,p, m); depending on the situation, a user may have to enter, one, two, or all three of them.
I have a stringvar set up to identify the section of the array this data will be entered into:
stringvar desig1:=split({RV_Practitioner_Office_TaxID.Comments},chr(13))[4];
and a stringvar to indicate the needed text;
stringvar desigall;
Then in the formula I have it referenced as a case select indicating which one of the cases it needs to show:
select desig1
case "5":
desigall:="5% or More Ownership Interest"
case "p":
desigall:="Partner"
case "m":
desigall:="Managing Control"
case "pm":
desigall:="Partner/Managing Control"
case "5m":
desigall:="5% or More Ownership Interest/Managing Control"
case "5p":
desigall:="5% or More Ownership Interest/Partner"
case "5pm":
desigall:="5% or More Ownership Interest/Partner/Managing Control"
default:
desigall:="Incorrect Data Entered"
Unfortunately, when I reference it later in the formula - in the display portion - it is only giving me the default information,"Incorrect Data Entered", for some reason it is not evaluating what my variable actually equals... I tried setting it up to use the case select based on the array section, but that didn't work either; I also tried it with the more cumbersome if/then statements - also to no avail.... any ideas?
And the data I placed in the field (in the correct place ) is 5pm....
Thanks!
Not in word only, but in deed also... 1Jn3:18