S
Sharon
Because I am a visual type person and it helps to be able to "spell" out the
code in words I understand, I have attempted to follow up on my 10/09/06 post
about parsing code. (BTW John I am attempting to parse these fields
because these documents are already entered into the Word program as shown
below and, of course, they would be better suited to having separate fields.
Through trial and error (and there was a lot), this is what I have come up
with (although I do have a wonderful color coded document for myself (which I
can't seem to send to ya'll) (yes I am from Texas)). Boy, you sure have to
watch those parentheses.
Anyway, I have a question at the very end that has puzzled me to no end and
if anyone has a chance to answer it, I would be grateful. Thanks.
This is the [Cite] field:
Abaza and Atassi, "Effects of Amino Acid Substitutions Outside an Antigenic
Site on Protein Binding to Monoclonal Antibodies of Predetermined Specificity
Obtained by Peptide Immunization: Demonstration with Region 94-100
(Antigenic Site 3) of Myoglobin", J. Protein Chemistry, 11(5):433-444, 1992.
This the code:
Title: Mid([Cite],InStr(1,[Cite],", """)+3,InStr(InStr(1,[Cite],""",
")-1,[Cite],",")-InStr(1,[Cite],",")-4)
This is my interpretation of the code in English:
1. In the middle of the string, starting at character 1 of the field
[Cite], and searching until it finds the characters: , "
2. Then deletes from the first of said characters + three spaces to the
right.
3. In the middle of the string, starting at character 1 of the field
[Cite], and searching until it finds the characters: ",
Then deletes (starting at the comma) to the end of the field [Cite] minus
four spaces (4)
*Not sure why -4, but it appears as if it starts at the text and then
subtracts four spaces to the left?
code in words I understand, I have attempted to follow up on my 10/09/06 post
about parsing code. (BTW John I am attempting to parse these fields
because these documents are already entered into the Word program as shown
below and, of course, they would be better suited to having separate fields.
Through trial and error (and there was a lot), this is what I have come up
with (although I do have a wonderful color coded document for myself (which I
can't seem to send to ya'll) (yes I am from Texas)). Boy, you sure have to
watch those parentheses.
Anyway, I have a question at the very end that has puzzled me to no end and
if anyone has a chance to answer it, I would be grateful. Thanks.
This is the [Cite] field:
Abaza and Atassi, "Effects of Amino Acid Substitutions Outside an Antigenic
Site on Protein Binding to Monoclonal Antibodies of Predetermined Specificity
Obtained by Peptide Immunization: Demonstration with Region 94-100
(Antigenic Site 3) of Myoglobin", J. Protein Chemistry, 11(5):433-444, 1992.
This the code:
Title: Mid([Cite],InStr(1,[Cite],", """)+3,InStr(InStr(1,[Cite],""",
")-1,[Cite],",")-InStr(1,[Cite],",")-4)
This is my interpretation of the code in English:
1. In the middle of the string, starting at character 1 of the field
[Cite], and searching until it finds the characters: , "
2. Then deletes from the first of said characters + three spaces to the
right.
3. In the middle of the string, starting at character 1 of the field
[Cite], and searching until it finds the characters: ",
Then deletes (starting at the comma) to the end of the field [Cite] minus
four spaces (4)
*Not sure why -4, but it appears as if it starts at the text and then
subtracts four spaces to the left?