Yep I caught that as well! Thanks so much for your help!
________________________________
From: Linda Lowney <llowney@...>
To: vantage@yahoogroups.com
Sent: Wed, February 16, 2011 3:49:05 PM
Subject: RE: [Vantage] Crystal Report Formula
Â
Oops! I have an extra curly bracket after the load hours:
It should be LoadHours := split({ResourceTimeUsed.LoadHours},"~");
NOT LoadHours := split({ResourceTimeUsed.LoadHours}},"~");
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
melissa hietala
Sent: Wednesday, February 16, 2011 4:38 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Crystal Report Formula
Thank you, I will give it a shot
________________________________
From: Linda Lowney <llowney@... <mailto:llowney%40pridesigns.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Wed, February 16, 2011 10:18:01 AM
Subject: RE: [Vantage] Crystal Report Formula
Something like this: (untested)
stringvar array LoadHours;
numbervar TotalHours;
numbervar i;
LoadHours := split({ResourceTimeUsed.LoadHours}},"~");
TotalHours = 0;
for i := 1 to ubound(LoadHours) do
TotalHours := TotalHours + tonumber(LoadHours[i])
;
TotalHours
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf
Of
melissa hietala
Sent: Tuesday, February 15, 2011 9:55 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Crystal Report Formula
Thanks for the response, Can you give me a little more info on where I need to
go from here? Maybe some sample code of what the end result may look like?
Thanks,
________________________________
From: Linda Lowney <llowney@... <mailto:llowney%40pridesigns.com>
<mailto:llowney%40pridesigns.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Sent: Mon, February 14, 2011 12:51:31 PM
Subject: RE: [Vantage] Crystal Report Formula
Hi Dustin,
You can use the "Split" function in Crystal. Try:
Split(ResourceTimeUsed.LoadHours,"~")
This should load each amount into a string array.
Linda
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On Behalf
Of melissa hietala
Sent: Monday, February 14, 2011 1:42 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Crystal Report Formula
In crystal I am trying to take the field "ResourceTimeUsed.LoadHours"
and
perform a calcuation on it.
The field is of type "string" and contains a list of #'s separted by the
"~"
symbol: Example: "4.41~10~5.01"
What I need to do is take this field and find all the #'s and add the
#'s to
get a grand total. So in the example above I would need to take 4.41 +
10 +
5.01 and return the value 19.42. The amount of #s in the "string" of
#'s
can vary, so I would need to loop through all the values in the string
regardless of how many values there are. Does anyone know how this can
be
accomplished in Crystal?
Thanks,
Dustin Biniek
UMC, Inc.
__________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
________________________________
From: Linda Lowney <llowney@...>
To: vantage@yahoogroups.com
Sent: Wed, February 16, 2011 3:49:05 PM
Subject: RE: [Vantage] Crystal Report Formula
Â
Oops! I have an extra curly bracket after the load hours:
It should be LoadHours := split({ResourceTimeUsed.LoadHours},"~");
NOT LoadHours := split({ResourceTimeUsed.LoadHours}},"~");
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
melissa hietala
Sent: Wednesday, February 16, 2011 4:38 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Crystal Report Formula
Thank you, I will give it a shot
________________________________
From: Linda Lowney <llowney@... <mailto:llowney%40pridesigns.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Wed, February 16, 2011 10:18:01 AM
Subject: RE: [Vantage] Crystal Report Formula
Something like this: (untested)
stringvar array LoadHours;
numbervar TotalHours;
numbervar i;
LoadHours := split({ResourceTimeUsed.LoadHours}},"~");
TotalHours = 0;
for i := 1 to ubound(LoadHours) do
TotalHours := TotalHours + tonumber(LoadHours[i])
;
TotalHours
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf
Of
melissa hietala
Sent: Tuesday, February 15, 2011 9:55 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Crystal Report Formula
Thanks for the response, Can you give me a little more info on where I need to
go from here? Maybe some sample code of what the end result may look like?
Thanks,
________________________________
From: Linda Lowney <llowney@... <mailto:llowney%40pridesigns.com>
<mailto:llowney%40pridesigns.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Sent: Mon, February 14, 2011 12:51:31 PM
Subject: RE: [Vantage] Crystal Report Formula
Hi Dustin,
You can use the "Split" function in Crystal. Try:
Split(ResourceTimeUsed.LoadHours,"~")
This should load each amount into a string array.
Linda
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On Behalf
Of melissa hietala
Sent: Monday, February 14, 2011 1:42 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Crystal Report Formula
In crystal I am trying to take the field "ResourceTimeUsed.LoadHours"
and
perform a calcuation on it.
The field is of type "string" and contains a list of #'s separted by the
"~"
symbol: Example: "4.41~10~5.01"
What I need to do is take this field and find all the #'s and add the
#'s to
get a grand total. So in the example above I would need to take 4.41 +
10 +
5.01 and return the value 19.42. The amount of #s in the "string" of
#'s
can vary, so I would need to loop through all the values in the string
regardless of how many values there are. Does anyone know how this can
be
accomplished in Crystal?
Thanks,
Dustin Biniek
UMC, Inc.
__________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]