- Mon Jan 16, 2006 5:03 pm
#52036
Unfortunately, changing that method didn't entirely fix the problem. HOWEVER, the post you sent just before this one WAS they key to my problem. Removing PARAMETERS made the text update properly.
Of course, now I'm confused. Why do I have to use PARAMETERS on my own parameters, but not on Graphisoft's parameters? Or is that just another one of those deep ArchiCAD mysteries?
For those of you keeping track, here is the code after Beister's comments:
F. Beister wrote:It's more than raw -- it's ugly, but the only other way I had done capitalization was comparing ascii values. Thanks for showing me the clean way to do it.Code: Select allis a bit raw.1000: IF NameChar = "a" THEN SubChar = "A" IF NameChar = "b" THEN SubChar = "B" IF NameChar = "c" THEN SubChar = "C" ...

Unfortunately, changing that method didn't entirely fix the problem. HOWEVER, the post you sent just before this one WAS they key to my problem. Removing PARAMETERS made the text update properly.
Of course, now I'm confused. Why do I have to use PARAMETERS on my own parameters, but not on Graphisoft's parameters? Or is that just another one of those deep ArchiCAD mysteries?

For those of you keeping track, here is the code after Beister's comments:
Code: Select all
Thanks again!!IF GLOB_MODPAR_NAME = `pCapitalize` THEN
NewName = ""
LowerChars = "abcdefghijklmnopqrstufwxyz"
UpperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
FOR Idx = 1 TO STRLEN(ROOM_NAME)
NameChar = STRSUB(ROOM_NAME, Idx, 1)
CharPos = STRSTR(LowerChars, NameChar)
IF CharPos THEN
NewName = NewName + STRSUB(UpperChars, CharPos, 1)
ELSE
NewName = NewName + NameChar
ENDIF
NEXT Idx
pCapitalize = 0
ROOM_NAME = NewName
PARAMETERS pCapitalize = pCapitalize, ROOM_NAME = ROOM_NAME
ENDIF
Jay Rennemeyer
Dell Precision M4300, 2.59 GHz Core 2 Duo, 3.5GB RAM
NVidia Quadro FX 360M, 512MB RAM
Windows XP Pro, Version 2002, SP3
AC10-1188, AC11-1210, AC12-2325
No longer using ArchiCAD
Dell Precision M4300, 2.59 GHz Core 2 Duo, 3.5GB RAM
NVidia Quadro FX 360M, 512MB RAM
Windows XP Pro, Version 2002, SP3
AC10-1188, AC11-1210, AC12-2325
No longer using ArchiCAD