Piotr's followup:
>But I don't realised that I can't open the related file twice.
>When I open file with first command "relate", the same file couldn't be
>opened in the next part of form.
>Am I right?
You have to experiment a bit. Actually I am not sure, what I scheduled was
a principle. If one cannot have the same relate more than once, just save
the fieldname after entry and perform relate in a third field:
Principle:
v1 set variable to "v1" and jump to v30
v2 set variable to "v2" and jump to v30
v3 ,,,,,....... etc
v30 perform relate here
regards
Jens M. Lauritsen, Consultant,MD. PhD.
The EpiData Association, (EpiData Foreningen)
Enghavevej 34, DK5230 Odense M. Denmark
e-mail: info(a)epidata.dk
For E-mail news on EpiData: Http://www.epidata.dk/php/maillist.php
EpiData is freeware
Piotr asked:
My next problem is: if there is some way to get the name of field in
calculation.
I mean, I 'd like to set comment legal in relational file depended on
reference which field was called from.
i.e.: main file has question: Which medicine have you used for last 12
month? And there is multiply response so I'd like to use relational
file. But the next quetion is: Which medicine ...ever used? And my
problem is to have ONE file with the medicine, and in this file I should
have an information about respondent, and form WHICH FIELD was calling.
------------------------------------------------------------------
Something along this line where you combine a global variable with a
comment legal depending on its value should work, some experimentation
needed:
chk file:
before file
* note the global
define fieldname ____________ global
end
id
mustenter
key unique
end
v1
after entry
fieldname = "v1"
relate id otherfile 1
end
end
v2
after entry
fieldname = "v2"
relate id otherfile
end
end
otherfile's chk file:
before file
* note you can repeat a define to be able to use the file alone
define fieldname _________ global
end
id
key
mustenter
end
moreinfo
before entry
comment legal
10 "no answer"
11 otherfiled
end
if fieldname = "v1" then
comment legal
1 yes
2 no
end
endif
if fieldname = "v2" then
comment legal
11 yes
12 no
end
endif
end
end
regards Jens Lauritsen
Jens M. Lauritsen, Consultant,MD. PhD.
The EpiData Association, (EpiData Foreningen)
Enghavevej 34, DK5230 Odense M. Denmark
e-mail: info(a)epidata.dk
For E-mail news on EpiData: Http://www.epidata.dk/php/maillist.php
EpiData is freeware
Hello!
I have a problem with all known example "first", and BMI calculation.
When I left blank field in "high" the warning "division by zero" is
shown. The "ignoremissing" command is not included.
The second question is why EpiData writes in check file command
"missingvalue all [same name of labelblock]". It happens when I'm
working "manually" with check and then I open check editor.
My build is: 040903
Regards,
Piotr
--
Piotr Kołodziejczyk
tel: +48604512362
e-mail: admiralek(a)o2.pl