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. The Lounge
  3. God I hate foxpro

God I hate foxpro

Scheduled Pinned Locked Moved The Lounge
csharptools
14 Posts 8 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.
  • D Offline
    D Offline
    Dave Parker
    wrote on last edited by
    #1

    My FoxPro isn't exactly great, and just been passed some long script to "finish". This is an extract from near the beginning. It's the sort of thing that makes me feel grateful when I have to work on a VB6 monstrosity (my preferred language is C#).... IF I > 0 && valid lnA = I * 0.47 ELSE && SYS(3050, 1) lnA = VAL(SYS(3050, 1)) / 0.65 * 0.47 ENDIF = SYS(3050, 1, lnA) = SYS(3050, 2, lnA/2) set talk on use it in 0 shared select iu from it; having max(cdate) <= {^2008-04-30}; group by iu into cursor cdata select atble append from DBF('cdata') use in cdata select it pack memo pack use in it

    M K D N H 6 Replies Last reply
    0
    • D Dave Parker

      My FoxPro isn't exactly great, and just been passed some long script to "finish". This is an extract from near the beginning. It's the sort of thing that makes me feel grateful when I have to work on a VB6 monstrosity (my preferred language is C#).... IF I > 0 && valid lnA = I * 0.47 ELSE && SYS(3050, 1) lnA = VAL(SYS(3050, 1)) / 0.65 * 0.47 ENDIF = SYS(3050, 1, lnA) = SYS(3050, 2, lnA/2) set talk on use it in 0 shared select iu from it; having max(cdate) <= {^2008-04-30}; group by iu into cursor cdata select atble append from DBF('cdata') use in cdata select it pack memo pack use in it

      M Offline
      M Offline
      Mark_Wallace
      wrote on last edited by
      #2

      Oh, c'mon! Foxpro's cute! You should be laughing at it, not getting annoyed.

      I wanna be a eunuchs developer! Pass me a bread knife!

      D 1 Reply Last reply
      0
      • M Mark_Wallace

        Oh, c'mon! Foxpro's cute! You should be laughing at it, not getting annoyed.

        I wanna be a eunuchs developer! Pass me a bread knife!

        D Offline
        D Offline
        Dave Parker
        wrote on last edited by
        #3

        Oh yes it's so cute having a function called GOMONTH (why GO and not ADD?) to add or subtract months from a date but not having equivalent functions (that I can find) for days, years etc. Or having && as one of the many ways to do a comment (I read it as logical and at first and want to strangle whoever decided to put that everywhere followed by various variable names / functions to make it look even more like a logical and). Ah well at least the dates are year-month-date format (tho i'm not sure what the ^ is all about). And people call C++! lol

        M 1 Reply Last reply
        0
        • D Dave Parker

          My FoxPro isn't exactly great, and just been passed some long script to "finish". This is an extract from near the beginning. It's the sort of thing that makes me feel grateful when I have to work on a VB6 monstrosity (my preferred language is C#).... IF I > 0 && valid lnA = I * 0.47 ELSE && SYS(3050, 1) lnA = VAL(SYS(3050, 1)) / 0.65 * 0.47 ENDIF = SYS(3050, 1, lnA) = SYS(3050, 2, lnA/2) set talk on use it in 0 shared select iu from it; having max(cdate) <= {^2008-04-30}; group by iu into cursor cdata select atble append from DBF('cdata') use in cdata select it pack memo pack use in it

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #4

          It Burns! [My eyes]

          CCC solved so far: 2 (including a Hard One!) 37!?!! - Randall, Clerks

          1 Reply Last reply
          0
          • D Dave Parker

            My FoxPro isn't exactly great, and just been passed some long script to "finish". This is an extract from near the beginning. It's the sort of thing that makes me feel grateful when I have to work on a VB6 monstrosity (my preferred language is C#).... IF I > 0 && valid lnA = I * 0.47 ELSE && SYS(3050, 1) lnA = VAL(SYS(3050, 1)) / 0.65 * 0.47 ENDIF = SYS(3050, 1, lnA) = SYS(3050, 2, lnA/2) set talk on use it in 0 shared select iu from it; having max(cdate) <= {^2008-04-30}; group by iu into cursor cdata select atble append from DBF('cdata') use in cdata select it pack memo pack use in it

            D Offline
            D Offline
            Dario Solera
            wrote on last edited by
            #5

            What is that... thing? :~

            If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki v3

            1 Reply Last reply
            0
            • D Dave Parker

              My FoxPro isn't exactly great, and just been passed some long script to "finish". This is an extract from near the beginning. It's the sort of thing that makes me feel grateful when I have to work on a VB6 monstrosity (my preferred language is C#).... IF I > 0 && valid lnA = I * 0.47 ELSE && SYS(3050, 1) lnA = VAL(SYS(3050, 1)) / 0.65 * 0.47 ENDIF = SYS(3050, 1, lnA) = SYS(3050, 2, lnA/2) set talk on use it in 0 shared select iu from it; having max(cdate) <= {^2008-04-30}; group by iu into cursor cdata select atble append from DBF('cdata') use in cdata select it pack memo pack use in it

              N Offline
              N Offline
              NormDroid
              wrote on last edited by
              #6

              God I feel sorry for you, but look on the bright side it - could be VB you're using :)

              Software Kinetics (requires SL3 beta) - Moving software

              1 Reply Last reply
              0
              • D Dave Parker

                Oh yes it's so cute having a function called GOMONTH (why GO and not ADD?) to add or subtract months from a date but not having equivalent functions (that I can find) for days, years etc. Or having && as one of the many ways to do a comment (I read it as logical and at first and want to strangle whoever decided to put that everywhere followed by various variable names / functions to make it look even more like a logical and). Ah well at least the dates are year-month-date format (tho i'm not sure what the ^ is all about). And people call C++! lol

                M Offline
                M Offline
                Mark_Wallace
                wrote on last edited by
                #7

                Don't you like go-carts? Go-go dancers? What's the problem? A little smile on your lips can help you to forget to bash your head against the wall, scream and swear, and take an uzi into your boss' office.

                I wanna be a eunuchs developer! Pass me a bread knife!

                J D 2 Replies Last reply
                0
                • M Mark_Wallace

                  Don't you like go-carts? Go-go dancers? What's the problem? A little smile on your lips can help you to forget to bash your head against the wall, scream and swear, and take an uzi into your boss' office.

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  J Offline
                  J Offline
                  Jim Crafton
                  wrote on last edited by
                  #8

                  Mark Wallace wrote:

                  A little smile on your lips can help you to forget to bash your head against the wall, scream and swear, and take an uzi into your boss' office.

                  That works when dealing with the wife as well, I've found :)

                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                  M 1 Reply Last reply
                  0
                  • M Mark_Wallace

                    Don't you like go-carts? Go-go dancers? What's the problem? A little smile on your lips can help you to forget to bash your head against the wall, scream and swear, and take an uzi into your boss' office.

                    I wanna be a eunuchs developer! Pass me a bread knife!

                    D Offline
                    D Offline
                    Dave Parker
                    wrote on last edited by
                    #9

                    Mark Wallace wrote:

                    A little smile on your lips can help you to forget to bash your head against the wall, scream and swear, and take an uzi into your boss' office.

                    I think he was the one who started the script....

                    1 Reply Last reply
                    0
                    • D Dave Parker

                      My FoxPro isn't exactly great, and just been passed some long script to "finish". This is an extract from near the beginning. It's the sort of thing that makes me feel grateful when I have to work on a VB6 monstrosity (my preferred language is C#).... IF I > 0 && valid lnA = I * 0.47 ELSE && SYS(3050, 1) lnA = VAL(SYS(3050, 1)) / 0.65 * 0.47 ENDIF = SYS(3050, 1, lnA) = SYS(3050, 2, lnA/2) set talk on use it in 0 shared select iu from it; having max(cdate) <= {^2008-04-30}; group by iu into cursor cdata select atble append from DBF('cdata') use in cdata select it pack memo pack use in it

                      H Offline
                      H Offline
                      HuntingWabbits
                      wrote on last edited by
                      #10

                      I worked with Foxpro for years, right up to version 9, and loved it for it's data handling capabilities. I always defended it when people knocked it. Then I learnt C#... and haven't looked back. Foxpro doesn't force you to do anything by the book. Which is why most Fox code is awful.

                      D 1 Reply Last reply
                      0
                      • J Jim Crafton

                        Mark Wallace wrote:

                        A little smile on your lips can help you to forget to bash your head against the wall, scream and swear, and take an uzi into your boss' office.

                        That works when dealing with the wife as well, I've found :)

                        ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #11

                        Jim Crafton wrote:

                        That works when dealing with the wife as well, I've found

                        Sounds like I'm lucky I don't have to deal with your wife!

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        1 Reply Last reply
                        0
                        • H HuntingWabbits

                          I worked with Foxpro for years, right up to version 9, and loved it for it's data handling capabilities. I always defended it when people knocked it. Then I learnt C#... and haven't looked back. Foxpro doesn't force you to do anything by the book. Which is why most Fox code is awful.

                          D Offline
                          D Offline
                          Dave Parker
                          wrote on last edited by
                          #12

                          Yeah same with VB6, even though its intended to be easy to understand. Of all the VB6 crap I've inherited over the years I don't think any has had "Option Explicit" turned on prior to me ending up with it.

                          1 Reply Last reply
                          0
                          • D Dave Parker

                            My FoxPro isn't exactly great, and just been passed some long script to "finish". This is an extract from near the beginning. It's the sort of thing that makes me feel grateful when I have to work on a VB6 monstrosity (my preferred language is C#).... IF I > 0 && valid lnA = I * 0.47 ELSE && SYS(3050, 1) lnA = VAL(SYS(3050, 1)) / 0.65 * 0.47 ENDIF = SYS(3050, 1, lnA) = SYS(3050, 2, lnA/2) set talk on use it in 0 shared select iu from it; having max(cdate) <= {^2008-04-30}; group by iu into cursor cdata select atble append from DBF('cdata') use in cdata select it pack memo pack use in it

                            B Offline
                            B Offline
                            bryce
                            wrote on last edited by
                            #13

                            do you have a decompiler for foxpro? Bryce

                            MCAD --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
                            Publitor, making Pubmed easy. http://www.sohocode.com/publitor

                            Our kids books :The Snot Goblin, and Book 2 - the Snotgoblin and Fluff

                            D 1 Reply Last reply
                            0
                            • B bryce

                              do you have a decompiler for foxpro? Bryce

                              MCAD --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
                              Publitor, making Pubmed easy. http://www.sohocode.com/publitor

                              Our kids books :The Snot Goblin, and Book 2 - the Snotgoblin and Fluff

                              D Offline
                              D Offline
                              Dave Parker
                              wrote on last edited by
                              #14

                              No, I've never needed one. Some way of getting symbolic debug information (PDB files) would be nice though.

                              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