Shoutbox

What does this code do? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: What does this code do? (/showthread.php?tid=99045)

What does this code do? by Spunky on 03-17-2012 at 09:21 PM

This is some FoxPro code that a friend of mine came across. He says the person that wrote it worked with him, but has left forcing him "work around" it.

I can't figure out what it's needed for although I can kind of tell what it's doing...

[Image: attachment.php?pid=1019642]


RE: What does this code do? by Eljay on 03-17-2012 at 09:52 PM

I have no idea what the hell it's supposed to be used for or why it's so weirdly obfuscated, but it's quite simple :zippy:

The string is in 6 character chunks:
00 1000
01 0964
02 0953
03 0942
04 0931
05 0920
06 0909
07 0898
08 0887
09 0880
10 0880

The loop just multiplies the first bit by 1000 and if it's greater than DX (whatever that is) divides the second bit by 1000. It makes no sense at all out of context, so I can't really explain any more :P

Also, is this language really case-insensitive with variables? Ewww.