Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: austin_hastings on September 19, 2005, 05:13:06 pm
-
Howdy,
I'm trying to detect a case-sensitive condition in some PHP code templates, and I discovered this:
%if "b" != "B"%
I am case sensitive.
%else%
I am not case sensitive.
%endIf%
The template machinery is not case sensitive.
Can someone tell me how to sensitize my code to case?
=Austin
-
PS:
I've got this, already:
$firstLetter = %LEFT(paramType, 1)%
$fluc = %FIND("ABCDEFGHIJKLMNOPQRSTUVWXYZ", $firstLetter)%
%if $fluc != "-1"%
First Letter is Upper Case!
%endIf%
But I downloaded the unicode version for a reason... :(
=Austin