05-05-2011 03:43 PM
Actually Ray.R version didn't work in 8.6 but doing Darin way did.
05-05-2011 06:39 PM - edited 05-05-2011 06:40 PM
Thanks Darin for fixing my Rube... 😄
I should have known better!
(what was I thinking????)
RayF,
That is strange... Why would it not work in LV8.6? Did you set the Search & Replace to "Regular Expression"?
05-06-2011 12:47 AM
Ray.R,
Yep
05-06-2011 06:20 AM
I have access to LV8.6, so I will try it.. Maybe a bug...??
05-06-2011 06:52 PM
I have access to LV8.6, so I will try it.. Maybe a bug...??
A bug?!! That is what you call your devious code-obfuscation? To the untrained eye it would appear that you are checking the offset past replacements which would be -1 in the case of no replacements. No, I'll wager that the wire is actually connected to the Number of Replacements which is indeed zero when the search string is not found. I don't even feel the need to boot LV to check my guess.
Rubes and obfuscation, throw a local variable or two in there why don't you?
05-07-2011 10:17 AM - edited 05-07-2011 10:23 AM
Darin, what would I do without you?? 😉
Glad that one of us is never wrong. Sorry about the obfuscated code.
I thought there was a bug in my code, not in LabVIEW 😄
Guess I was having a bad day LOL! 😉
05-07-2011 04:07 PM
@Ray.R wrote:
Darin, what would I do without you?? 😉
Glad that one of us is never wrong. Sorry about the obfuscated code.
I thought there was a bug in my code, not in LabVIEW 😄
Guess I was having a bad day LOL! 😉
Nasty Darin!... Gosh, I'm glad I am never in error!
05-07-2011 06:01 PM
05-08-2011 12:28 PM
that's what keeps this thread fun.
Just making sure you don't run out of supplies 😄
05-16-2011 08:29 AM - edited 05-16-2011 08:45 AM
Can you spot the unecessary code complications on the left?
(seen here, this is only the tip of the iceberg! 🐵
On the right would be an equivalent code alternative... 😄
* Of course the loop invariant code handling on the compiler might sort some of the problems out, but still.....