ODBiC Discussion Board


RE: try this, Gordon, 01-11-2008

OK....but what is the differenence here

by Scott, January 11, 2008 17:05

Hello,

Thanks for the help. I finally got it to work...but there is what I was fighting. How come the code example you provided works but mine does not. I use the % symbol and you had!--

The code with the !-- works..but the % code does NOT.

<!--SET $newname$ = "" -->
<!--SELECT emp_id FROM employee -->
<!--IF $ROW$ -->
   <!--EACHROW -->
      <!--IF $ROW$ = 1 -->
         <!--SET $newname$ = $emp_id$ -->
      <!--ELSE -->
         <!--SET $newname$ = $newname$;$emp_id$ -->
      <!--ENDIF -->
   <!--ENDROW -->
<!--ENDIF -->

NAME=$newname$

<hr> 3<br>

<% SET $newname$ = "" %> <% SELECT emp_id FROM employee %> <% IF $ROW$ %> <% EACHROW %> <% IF $ROW$ = 1 %> <% SET $newname$ = $emp_id$ %> <% ELSE %> <% SET $newname$ = $newname$;$emp_id$ %> <% ENDIF %> <% ENDROW %> <% ENDIF %>

Thanks



Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 

          


Copyright ©1997-2003, Roger Harris. All rights reserved.