CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14

Threaded View

  1. #1
    Join Date
    Apr 2020
    Posts
    7

    [RESOLVED] Fortran to VB6

    Hi Everyone,

    I have a small amount of Fortran 77 code to convert to VB6 and I'd like suggestions/ code from anyone with experience at this:

    Code:
         implicit real*8(a-h,o-z)
          real*4 data(100000)
          real*8 glamn,glomn,dla,dlo
          integer*4 nla,nlo,ikind
          character*88 fname
    
          open(2,file=fname,form='formatted')
          
          read(2,*)glamn,glomn,dla,dlo,nla,nlo,ikind
          
          do 10 i=1,nla
                read(2,*)(data(j),j=1,nlo)
                xlat=glamn+(i-1)*dla
           do 11 j=1,nlo
                 xlon=glomn+(j-1)*dlo   
                 write(6,*) xlat,xlon,data(J)   
    c latitude (N) longitude (E) in degree, data(j) geoid heights in meters
     10 continue
          end
    Thanks for any help
    Last edited by 2kaud; April 2nd, 2020 at 11:24 AM. Reason: Added code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured