Normal Topic Pick list refresher course (Read 676 times)
FlipGilbert
Full Member
***
Offline


Running Ver 2.6.4

Posts: 236
Location: Sandy Eggo
Joined: Mar 8th, 2005
Pick list refresher course
Oct 14th, 2023 at 6:49pm
Print Post Print Post  
Hello, it's been a while.

Here's what I'm looking at.
If this is left to right....

If @Left (sFieldName, 2) <> ".." And @Right (sFieldName, 2) = ".."
     {
           sStart = @left (sFieldName, @in (sFieldName, "..") - 1) + @chr (1)
           sEnd = @left (sFieldName,   @in (sFieldName, "..") - 1) + "zzzzzzz"
     }

what is ..

If @Left (sFieldName, 2) = ".." And @Right (sFieldName, 2) <> ".."

thank you for any assistance.
  

It's not what a man says that matters or how he says it, but what he does and how he does it.
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Pick list refresher course
Reply #1 - Oct 20th, 2023 at 1:39pm
Print Post Print Post  
FlipGilbert wrote on Oct 14th, 2023 at 6:49pm:
If @Left (sFieldName, 2) = ".." And @Right (sFieldName, 2) <> ".."


That code is checking the value of sFieldName to see if the first 2 characters ARE ".." AND that the last 2 characters(the rightmost 2) of the value of sFieldName are NOT ".."

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged