Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: austin_hastings on September 19, 2005, 05:13:06 pm

Title: Code templates: How can I be case-aware?
Post 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
Title: Re: Code templates: How can I be case-aware?
Post by: austin_hastings on September 19, 2005, 05:18:25 pm
PS:

I've got this, already:

Code: [Select]

$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