- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting the following error - error #7938: Character length argument mismatch. [' ']
The subroutine interface is:
subroutine Info (row,col,Mess,len)
integer*4 row,col,len
character*(*) Mess
end subroutine
The call to the routine is:
call Info (0,1,' ',1)
if I change it to :
character c80*80
c80=' '
call Info (0,1,c80,1)
It works, but is there a better way?
Thanks,
David
The subroutine interface is:
subroutine Info (row,col,Mess,len)
integer*4 row,col,len
character*(*) Mess
end subroutine
The call to the routine is:
call Info (0,1,' ',1)
if I change it to :
character c80*80
c80=' '
call Info (0,1,c80,1)
It works, but is there a better way?
Thanks,
David
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the error go away if you do a Build > Rebuild? I suspect you have a leftover generated interface module that doesn't reflect the change you made to Info. Or compile Info's source first, manually, then do a Build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
The errors went away when I deleted all the files in the debug directory and then did a build.
But I find every time I do a build I get one or two of these types of errors - it says Build Successful but then I get some more, it's not a major problem but I would like to get rid of all the errors.
David
The errors went away when I deleted all the files in the debug directory and then did a build.
But I find every time I do a build I get one or two of these types of errors - it says Build Successful but then I get some more, it's not a major problem but I would like to get rid of all the errors.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Depending on the build order,some of these errors won't be revealed until a subsequent build. I suggest doing a rebuild when you change the declarations of routine arguments.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page