mercredi 4 février 2015

filter data output in PASCAL

my data output code :



gotoxy(2,5);write(data[i].film_id);
gotoxy(10,5);write(data[i].film_title);
gotoxy(39,5);write('Rp',data[i].price:0:2);
gotoxy(52,5);write(data[i].category);
gotoxy(66,5);write(data[i].stock);


I want to show my data based on the category record. For example i want to show my film data but the only if category is ACTION


i tried this on and it wont work



if data[i].category='Action' then


i put that code above the output code


so how can i solve my problem, thanks


Aucun commentaire:

Enregistrer un commentaire