Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Character to integer

Status
Not open for further replies.

tomdacat

Programmer
Mar 24, 2014
5
GB
i am writing a simple Data base in fortran
to check if a staff member has done there training or not
and to display the date they need to do it

so i get some Data from a Dates.txt file
and save it as character(len=10) :: dates(65)
but for the next part of my program i need
to change my character containing all my dates
to a integer
if anyone knows how please leave a response
thanks in advance
 
I don't understand exactly what you want to do. But my first approach would be to store all the dates in a specific array like you propose. Then each date is associated to its position in that array (integer value) and then you may use that position in place of the date itself. But this works only if all the dates in your array are different.

François Jacq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top