They want to populate a field based on the following criteria:
R_Sphere and L_Sphere have to be between a -2.00 and 4.00
FOCALTYPE is Single Vision Lenses
PLANNAME is like VSP (VSP Signature, VSP Choice, VSP Value)
R_Cyl and L_Cyl is -2.00 or less...or blank.
Here is my messed up script:
IF SF.TABLEINEDITMODE ('FRAM_RX') then
IF (((PLANNAME = 'VSP Signature') OR (PLANNAME = 'VSP Choice') OR (PLANNAME = 'VSP Value'))) then
IF (((R_SPHERE <= '4.00') and (R_SPHERE >= '0.25') and (R_SPHERE >= '-0.25') and (R_SPHERE >= '-4.00') and (L_SPHERE <= '4.00') and (L_SPHERE >= '0.25') and (L_SPHERE >= '-0.25') and (L_SPHERE >= '-4.00'))) then
SF.AssignFieldText ('FRAM_RX','OPTICALLAB','City Optical Lab');
Can anyone PLEASE PLEASE help me?
I train on how to USE the software, I am not a programmer; I am just trying to learn more about the SIMPLE stuff I have been doing i.e. procedure REPORTEXAMVITALS( Sender );
so that I can help instead of bugging the programmers all the time.
I will look elsewhere! Thanks!
Sarah Gibson wrote:I work for a software company as a trainer, and along the way have been writing SIMPLE "smart functions". I had a request from a client today that I really want to figure out for them. Just when I get it to work, I think of another area that I am missing...
It's a fairly common situation called 'development paralysis', and it can take many forms. Yours arises (I suspect) from imprecise requirements.
My advice (and it's always the same): StopCoding (←click).
Back up and ask yourself what you're doing, and write the requirements down in English and in full before you write another line of code.
Bear's point aside, I think it's sufficiently generic advice to cross language platforms.
I am thinking I will just go bug the programmers (first to find out what the name of this is..obviously not Java or take a class....programming people can be brutal with the simple stuff!
The software I use has it's own "Smart Function Editor" so there is stuff going on in the background that the programmers hide from us. I think I will stick to training on how to use the software itself...I've got that part down!