jcrawford08
Technical User
Hi All,
CR XI, SQL Environment...
I have a text field, and in situations where less than 3 Chr(13)s have been entered, or the instance of ["/", ", "] is less than 3:
stringvar baddata;
local stringvar x:={RV_Practitioner_Office_TaxID.Comments};
local numbervar i;
local numbervar cntpar;
local numbervar cnt;
for i:=1 to len(x) do(if x in [chr(13)] then cntpar:=cntpar+1 else if x in [", ","/"] then cnt:=cnt+1);
if cntpar<>3 or cnt<3 then baddata:="Bad Data Entry" else
baddata:="";
baddata
The problem is, the counts aren't coming out right - I snagged the majority of this formula from thread767-1611310 - when I put the items into a formula by themselves and reference the counts I get 0....
any ideas?
Thanks
Not in word only, but in deed also... 1Jn3:18
CR XI, SQL Environment...
I have a text field, and in situations where less than 3 Chr(13)s have been entered, or the instance of ["/", ", "] is less than 3:
stringvar baddata;
local stringvar x:={RV_Practitioner_Office_TaxID.Comments};
local numbervar i;
local numbervar cntpar;
local numbervar cnt;
for i:=1 to len(x) do(if x in [chr(13)] then cntpar:=cntpar+1 else if x in [", ","/"] then cnt:=cnt+1);
if cntpar<>3 or cnt<3 then baddata:="Bad Data Entry" else
baddata:="";
baddata
The problem is, the counts aren't coming out right - I snagged the majority of this formula from thread767-1611310 - when I put the items into a formula by themselves and reference the counts I get 0....
any ideas?
Thanks
Not in word only, but in deed also... 1Jn3:18