If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > assign string to number

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-09, 02:08
lalamaisee lalamaisee is offline
Registered User
 
Join Date: Nov 2009
Posts: 1
assign string to number

Hi,

Im a newbie who are using CR 2008.

i have a problem to assign value to a string. in my database, there is a column called 'Event_Status' where this column, consists two status which is 'active' and 'clear'.

these two status is indicating the status of another column called 'Event_Name' and this column consist the event called 'devdown' (device down) and 'unresponsive'. here the example of my data:


Event_Name.........................Event_Status
devdown..................................active
devdown..................................clear
devdown..................................active
devdown..................................clear
unresponsive.............................active
unresponsive.............................clear
unresponsive.............................active
unresponsive.............................clear



is it possile for me to assign value '1' for active and '0' for clear so that im able to generate the line chart based on this data. how can i do that? is there any relevant CR syntax or SQL syntax that i can use? please advice.

Thank you in advance

Last edited by lalamaisee; 11-08-09 at 02:13.
Reply With Quote
  #2 (permalink)  
Old 09-15-11, 14:40
mission mission is offline
Registered User
 
Join Date: Oct 2010
Posts: 44
Quote:
Originally Posted by lalamaisee View Post
is it possile for me to assign value '1' for active and '0' for clear so that im able to generate the line chart based on this data. how can i do that? is there any relevant CR syntax or SQL syntax that i can use?
You would need to create a formula for use in the line chart instead of Event_Status. In the formula, you would assign '1' or '0' depending on the value of Event_Status.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On