Date Code
Hi Bartender Friends,
I'm newbie in bartender V10. I have problem to create date code for our product detail
We need to add in the shelf life 5 day and special date code request by hypermarket
Delivery Date 02/11/2016
We need display :
Best Before : 06/11/2016
Date Code : K06
K06 = NOVEMBER 6th
JAN=A
FEB=B
MARCH=C
APRIL=D
MAY=E
JUN=F
JULY=G
AUG=H
SEPT=I
OCT=J
NOV=K
DEC=L
Can I do it without any VB Script, coz I dunno how to do programming
-
- The "shelf life" date can probably be easily done with a date object and setting an offset transform.
- The "special date code" you will need to use some simple visual basic script to accomplish. You just need to write a simple case statement or if...then...else statement. Visual basic script in this case can be set for OnProcessData event in the object properties->transforms->VB script.
Below is an example using a case statement in visual basic. You will need to modify it to fit your requirements but will give you an idea how the visual basic syntax will look like. Essentially, in this example if the value for the object is coming in as 1, 2, 3, etc., then it will display the appropriate month abbreviation JA, FE, MR, etc. accordingly:
Select Case valueCase1Value ="JA"Case2Value ="FE"Case3Value ="MR"Case4Value ="AL"Case5Value ="MA"Case6Value ="JN"Case7Value ="JL"Case8Value ="AU"Case9Value ="SE"Case10Value ="OC"Case11Value ="NO"Case12Value ="DE"End Select0
Please sign in to leave a comment.
Comments
1 comment