[ErrorTrack]

Description

Link: [ErrorTrack]
Author: Miles
Category: Error
Version: 8.x
License: Public Domain
Posted: May. 27, 2008
Updated: Jan. 01, 0001
More by this author...
This tag takes three commonly used tags and combines them into one error tracking tool. It has 7 different outputs: 1.) passed parameters and values. 2.) errors only. 3.) found count. 4.) 2 + 3. 5.) 1 + 2. 6.) 1 + 3. 7.) All 3.

Parameters

none


Sample Usage

x_errortrack: -type=X, where X is a numeric value 1 to 7.
						

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?LassoScript

	Define_Tag: 'errortrack', -Namespace='x_', -Required='type'; 
 
 		local: 'code' = string;
 
 		select: #type;
 			case: '1';
 				#code='<B>params: </B>' + action_params + '<BR><BR>';
 			case: '2';
 				#code='<B>error: </B>' + error_currenterror + '<BR><BR>' ;
 			case: '3';
				#code='<B>found count: </B>' +found_count '<BR><BR>';
			case: '4';
 				#code='<B>error: </B>' + error_currenterror + '<BR><BR>' + 
 				      '<B>found count: </B>' +found_count '<BR><BR>';
 			case: '5'; 
 				#code='<B>params: </B>' + action_params + '<BR><BR>' + 
 				      '<B>error: </B>' + error_currenterror + '<BR><BR>';
 			case; '6';
 				#code='<B>params: </B>' + action_params + '<BR><BR>' +
 				      '<B>found count: </B>' + found_count '<BR><BR>'; 
 			case; '7';
 				#code='<B>params: </B>' + action_params + '<BR><BR>' +
 					  '<B>error: </B>' + error_currenterror + '<BR><BR>' + 
 				      '<B>found count: </B>' + found_count '<BR><BR>';	      
 		/select;	
 	
 		return: @#code;  // returns the string encoded properly.
 			
	/Define_Tag; 
	
?>

 

Comments

none

Email:


Password:



Newest

Most Popular