2006 Jul 11 4:22 PM
hi friends
i am doing one smartform for controlled and non controlled substance and i created two windows for con and non con
now i need to find the num of labels in particular form
var = 1.
if label_type 'c1' or 'n1'
var = var + 1.
endif.
plz tellme me the above logic is correct or not if its correct
plz tel me where i have to write this logic
regards
venkat
2006 Jul 11 4:28 PM
hi venkat,
i think its advisable to write this code in print program directly
Regards,
Naveen
2006 Jul 11 4:33 PM
i have been asked to write in the form itself is it correct if so where i should write and how
regards,
venkat.
2006 Jul 11 4:32 PM
Hi,
You need to write this is Prgram lines for that window .only one change i can see
var = 0. "it should be Zero initially
if label_type 'C1' or 'N1'
var = var + 1.
endif.
Regards
vijay
2006 Jul 11 5:49 PM
Hi Vijay
can i write the above logic in global definitions intialization tab.
otherwise i need to write this logic for two windows separately then it is difficult to maintain the no of lables value in one varriable
plz confirm
ragrds
venkat
2006 Jul 11 6:08 PM
HI,
You can write this in the Global Definations --> Initialization tab, here you need to maintain the Input Parameter and output parameter, adn write your code, so here VAR will be there in the output Parameter so that the value will be available for you
Hope you understand
Thanks
Sudheer