Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. ON GOTO statement to vc++

ON GOTO statement to vc++

Scheduled Pinned Locked Moved Visual Basic
questionc++learning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shanila
    wrote on last edited by
    #1

    I got this BASIC code from an old book, I am converting this to c, could somebody tell me what is "On NTY GoTo 610, 620, 680, 690" function is? I know that is to go to line 610,620,680,690. but what are the conditions for that? what about " !" in here?, In c if it is "!=" that is not equal to, but what about here? It canot be factorial number. NTY = ITYPE(I): KP = 4 * (I - 1) + 1 600 On NTY GoTo 610, 620, 680, 690 610 R = ELEM(KP): GoTo 660 620 REY = ELEM(KP + 1) * Abs(Q(I)): If REY < 1! Then REY = 1! 630 If REY < 2000 ! Then GoTo 640 Else GoTo 650 640 R = ELEM(KP) * 64 ! / REY: GoTo 660 650 R = ELEM(KP) * 1.325 / (Log(ELEM(KP + 2) + 5.74 / REY ^ 0.9)) ^ 2 660 DH = DH + S(J) * R * Q(I) * Abs(Q(I)) ^ EN 670 HDQ=HDQ+EX*R*ABS(Q(I))^EN GOTO 710 680 DH = DH + S(J) * ELEM(KP): GoTo 710 690 DH = DH - S(J) * E(LEM(KP) + Q(I) * (ELEM(KP + 1) + Q(I) * (ELEM(KP + 2) + Q(I) * ELEM(KP + 3)))) thanks in advance shanila

    H 1 Reply Last reply
    0
    • S shanila

      I got this BASIC code from an old book, I am converting this to c, could somebody tell me what is "On NTY GoTo 610, 620, 680, 690" function is? I know that is to go to line 610,620,680,690. but what are the conditions for that? what about " !" in here?, In c if it is "!=" that is not equal to, but what about here? It canot be factorial number. NTY = ITYPE(I): KP = 4 * (I - 1) + 1 600 On NTY GoTo 610, 620, 680, 690 610 R = ELEM(KP): GoTo 660 620 REY = ELEM(KP + 1) * Abs(Q(I)): If REY < 1! Then REY = 1! 630 If REY < 2000 ! Then GoTo 640 Else GoTo 650 640 R = ELEM(KP) * 64 ! / REY: GoTo 660 650 R = ELEM(KP) * 1.325 / (Log(ELEM(KP + 2) + 5.74 / REY ^ 0.9)) ^ 2 660 DH = DH + S(J) * R * Q(I) * Abs(Q(I)) ^ EN 670 HDQ=HDQ+EX*R*ABS(Q(I))^EN GOTO 710 680 DH = DH + S(J) * ELEM(KP): GoTo 710 690 DH = DH - S(J) * E(LEM(KP) + Q(I) * (ELEM(KP + 1) + Q(I) * (ELEM(KP + 2) + Q(I) * ELEM(KP + 3)))) thanks in advance shanila

      H Offline
      H Offline
      Hesham Amin
      wrote on last edited by
      #2

      as I recall On NTY GoTo 610, 620, 680, 690 statement tests NTY and jumps to 610 if NTY=1 , 620 if NTY=2 etc. in VB6 ! meens that the number is single. but in GWBasic I used to see it if I write a huge number (the editor adds it)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups