piyush12197
Programmer
CLEAR
SET TALK OFF
YES="Y"
USE chair_tb
DO WHILE YES="Y"
chair_no1=SPACE(20)
chair_height1=SPACE(20)
chair_buy_date1=SPACE(20)
@7,75,38,170 box
@4,110 SAY "chair description"
@4.9,108 SAY "_____________________"
@8,95 SAY "Chair Number : " GET chair_no1
chair_no2 = INT(VAL(chair_no1))
@11,95 SAY "chair height : " GET chair_height1
chair_height2 = INT(VAL(chair_height1))
@14,120 SAY "(MM/DD/YYYY)"
@15,95 SAY "chair buy date : " GET chair_buy_date1
chair_buy_date1 = CTOD("mm/dd/yyyy")
@18,95 SAY "IF YOU WANT MORE ENTRY(Y/N)" GET YES PICT "Y"
READ
APPEND BLANK
REPLACE chair_no WITH chair_no2
REPLACE chair_height WITH chair_height2
REPLACE chair_buy_date WITH chair_buy_date1
ENDDO
CANCEL
this is my code. where date value can successfully added but integer data are not adding any number added as 0.
SET TALK OFF
YES="Y"
USE chair_tb
DO WHILE YES="Y"
chair_no1=SPACE(20)
chair_height1=SPACE(20)
chair_buy_date1=SPACE(20)
@7,75,38,170 box
@4,110 SAY "chair description"
@4.9,108 SAY "_____________________"
@8,95 SAY "Chair Number : " GET chair_no1
chair_no2 = INT(VAL(chair_no1))
@11,95 SAY "chair height : " GET chair_height1
chair_height2 = INT(VAL(chair_height1))
@14,120 SAY "(MM/DD/YYYY)"
@15,95 SAY "chair buy date : " GET chair_buy_date1
chair_buy_date1 = CTOD("mm/dd/yyyy")
@18,95 SAY "IF YOU WANT MORE ENTRY(Y/N)" GET YES PICT "Y"
READ
APPEND BLANK
REPLACE chair_no WITH chair_no2
REPLACE chair_height WITH chair_height2
REPLACE chair_buy_date WITH chair_buy_date1
ENDDO
CANCEL
this is my code. where date value can successfully added but integer data are not adding any number added as 0.