![]() | |
#11
| |||
| |||
|
|
Though of course, for us unreconstructed old assembly programmers, we note that many Pick systems optimize Fors with an implict step of 1, ie: FOR i = 1 TO 100 is different than FOR i = 1 TO 100 STEP 1 or FOR i =100 TO 1 STEP -1. Saves ya a few nanoseconds! Chandru "Ross Ferris" <rossf (AT) stamina (DOT) com.au> wrote in message news:1122338781.465156.16930 (AT) g49g2000cwa (DOT) googlegroups.com... And/or a 'trick?' I recently picked up, if you LIKE the idea of having a LEN() in the loop, change the structure so it is FOR CharCnt = LEN(inString) to 1 step -1 This way the LEN() is only executed once ... provided the order that you traverse doesn't matter. Ditto for DCOUNTS etc |
#12
| |||
| |||
|
|
Wouldn't it be better to not do the LEN every tiem the loop executes? /just asking |
#13
| |||
| |||
|
|
Bob: Try the following, encryption code courtesy of Mark Brown. Hope this helps. snip source code |
#14
| |||
| |||
|
|
"Bill H" wrote Bob: Try the following, encryption code courtesy of Mark Brown. Hope this helps. snip source code It looks like the encrypted text might take on any characters whatsoever; does D3 barf much handling the segment marks <<CHAR(255)>> that must come up from time to time? In other words, are there any D3 verbs you've had to avoid using with encrypted items? |
![]() |
| Thread Tools | |
| Display Modes | |
| |