|
-
May 21st, 2013, 03:31 PM
#1
Thread Starter
Junior Member
Visual Basic 1 code?
Hi, I'm completely new to visual basic, and for a contest I'm competing in I had to take a piece of code shown in a video.
Since the video was a bit unclear this is what I could read from it:
Code:
*snip*
Removed so that other people competing in the contest may not find this code. I'd PM it to you though.
I first though it was SINCLAIR basic, but someone said it looked more like Visual Basic. The video is from 1992, so I'm guessing Visual Basic 1 or so. Anyway, some characters were quite unclear so I may have been mistaken with several( like | for example).
It would be awesome if someone who knows the language well could help me fix this.
Thanks.
Last edited by stefan bauwens; May 22nd, 2013 at 01:55 PM.
-
May 21st, 2013, 04:21 PM
#2
Re: Visual Basic 1 code?
It doesn't look like any version of Visual Basic.
-
May 21st, 2013, 05:08 PM
#3
Re: Visual Basic 1 code?
QBasic
... and the lines that begin with '|||||<< .... are comments
Last edited by jggtz; May 21st, 2013 at 05:16 PM.
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
-
May 21st, 2013, 05:29 PM
#4
Re: Visual Basic 1 code?
I don't recall any CONNECT statement in QBasic. The PSET usage looks entirely different too.
-
May 21st, 2013, 06:50 PM
#5
Re: Visual Basic 1 code?
I think you copied that code wrong. I can't get it to run in Quick Basic Extended.
-
May 21st, 2013, 06:54 PM
#6
Re: Visual Basic 1 code?
MSX Basic?
http://en.wikipedia.org/wiki/MSX_BASIC
nvm - that's not it - sorry...
Last edited by szlamany; May 21st, 2013 at 07:13 PM.
-
May 21st, 2013, 09:03 PM
#7
Re: Visual Basic 1 code?
I would say QBasic too but then a lot of older languages look the same too me! Maybe you will be able to find it here.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 21st, 2013, 09:05 PM
#8
Banned
Re: Visual Basic 1 code?
wud have been better if u provided video link for all
-
May 22nd, 2013, 02:26 AM
#9
Thread Starter
Junior Member
Re: Visual Basic 1 code?
Thanks for the replies. If this is QBasic, I'm pretty sure it won't work because it definitely will have mistakes, since some characters were so blurry and unrecognizable to me.
Anyway, here's the video. The code is only seen in a short period of time(9:45-9:53): http://www.youtube.com/watch?v=G4wIi_Y3qnY
I downloaded a better quality video, but still it was hard to see. :/
-
May 22nd, 2013, 06:31 AM
#10
Re: Visual Basic 1 code?
What makes you think the code does anything useful anyway? Seeing as the code wasn't the point of the video. Why do you need to know what language was used?
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 22nd, 2013, 08:58 AM
#11
Thread Starter
Junior Member
Re: Visual Basic 1 code?
It's for a contest I'm in. The organizers have done it themselves so it for sure does something. However they do mention that a piece at the beginning is missing. A part of the contest is also to fix the code.
Also, I think it may be this computer that was used: http://s15.postimg.org/rima2l2a3/Picture_5.png
However, I've looked a bit but haven't found it's name. It looks a bit like an IBM PC. Maybe one of you guys know?
Thanks
-
May 22nd, 2013, 09:22 AM
#12
Re: Visual Basic 1 code?
 Originally Posted by dilettante
I don't recall any CONNECT statement in QBasic. The PSET usage looks entirely different too.
Same here I've used a lot of different basic versions including QBasic and Quick Basic and never saw a Connect statement before
also this looks rather odd
Code:
860 X1=(320-I)+RND|I| X2+RND|I+319
I do not know if those pipe characters are supposed to be something else or what but that does not look like any valid syntax from any version of Basic I have used.
From the looks of that old PC it was probably running Dos and probably had Basic and BasicA on it.
I have used those as well but the code does not look valid for those either.
-
May 22nd, 2013, 12:01 PM
#13
Re: Visual Basic 1 code?
I cut my teeth on the IBM PC with BasicA, it didn't use pipes like that.
-
May 22nd, 2013, 01:11 PM
#14
Re: Visual Basic 1 code?
I didn't see the whole code but...
'Connect' could be a Declared Sub... we could do it in QBasic
and about
Code:
X1=(320-I)+RND|I| X2+RND|I+319
IMO some of the multiline character | must be / or :
remember that the OP said
it definitely will have mistakes, since some characters were so blurry and unrecognizable to me.
Last edited by jggtz; May 22nd, 2013 at 01:50 PM.
Reason: syntax
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
-
May 22nd, 2013, 01:23 PM
#15
Thread Starter
Junior Member
Re: Visual Basic 1 code?
Yes, the pipe symbol I was the most unsure of.
Here's a picture of the specific line of code out of the video:

EDIT: Someone competing in the contest found the code and notified me. I removed it now since otherwise I may ruin the contest for some. But I will PM the code to you if you want.
Thanks for all the effort you guys are doing btw.
Last edited by stefan bauwens; May 22nd, 2013 at 01:57 PM.
-
May 22nd, 2013, 02:01 PM
#16
New Member
Re: Visual Basic 1 code?
 Originally Posted by stefan bauwens
Yes, the pipe symbol I was the most unsure of.
Here's a picture of the specific line of code out of the video:
EDIT: Someone competing in the contest found the code and notified me. I removed it now since otherwise I may ruin the contest for some. But I will PM the code to you if you want.
Thanks for all the effort you guys are doing btw. 
i think it is an ":" not sure.
EDIT:
this is how i interpreted the code:
looks like i cant delete the picture. any help? EDIT: found it
the part of the picture is that it cant be found with google.
Last edited by Floris497; May 23rd, 2013 at 05:16 AM.
-
May 22nd, 2013, 02:05 PM
#17
New Member
-
May 22nd, 2013, 02:16 PM
#18
Re: Visual Basic 1 code?
 Originally Posted by Floris497
i think the | is an :
I tried that already. It makes a little more sense but that still didn't make it compilable. I think he got a few other things wrong besides the pipes.
-
May 22nd, 2013, 02:19 PM
#19
New Member
Re: Visual Basic 1 code?
i don't know how this forum works how to PM my code, it's a little different.
-
May 22nd, 2013, 02:26 PM
#20
Re: Visual Basic 1 code?
You should be able to add it as an attachment. You have to use the advance editor to attach files your post.
-
May 22nd, 2013, 02:29 PM
#21
New Member
Re: Visual Basic 1 code?
i can do that. but see the first post again. he is talking about me.
-
May 22nd, 2013, 02:52 PM
#22
Thread Starter
Junior Member
-
May 22nd, 2013, 03:15 PM
#23
Re: Visual Basic 1 code?
 Originally Posted by stefan bauwens
That really does look like BasicA. Though I don't remember it having a CONNECT function. From what I can see, CONNECT looks like it does something with the points that are used to draw lines.
Its really hard to make out some details of what is written from the pic though.
-
May 22nd, 2013, 03:17 PM
#24
Re: Visual Basic 1 code?
 Originally Posted by Floris497
How'd you get that ?
-
May 22nd, 2013, 04:24 PM
#25
New Member
Re: Visual Basic 1 code?
 Originally Posted by Niya
How'd you get that ?
typed it over.
-
May 22nd, 2013, 04:54 PM
#26
Re: Visual Basic 1 code?
Looking at line 720 and assuming that 'CONNECT' connects all the points (x,y) - (x1,y1) etc
Code:
Private Sub cmdDraw_Click()
pic.ScaleMode = 3
pic.Width = 12000
pic.Height = 4700
pic.Line (320, 90)-(310, 99)
pic.Line (310, 99)-(300, 100)
pic.Line (300, 100)-(310, 101)
pic.Line (310, 101)-(320, 110)
pic.Line (320, 110)-(322, 101)
pic.Line (322, 101)-(340, 100)
pic.Line (340, 100)-(322, 99)
pic.Line (322, 99)-(320, 90)
End Sub
creates an interesting shape in the PictureBox 'pic'. I'm guessing that the 'J' loop and 'C=RND16+1' is to change the Colour
-
May 22nd, 2013, 05:40 PM
#27
Re: Visual Basic 1 code?
 Originally Posted by Doogle
Looking at line 720 and assuming that 'CONNECT' connects all the points (x,y) - (x1,y1) etc
Code:
Private Sub cmdDraw_Click()
pic.ScaleMode = 3
pic.Width = 12000
pic.Height = 4700
pic.Line (320, 90)-(310, 99)
pic.Line (310, 99)-(300, 100)
pic.Line (300, 100)-(310, 101)
pic.Line (310, 101)-(320, 110)
pic.Line (320, 110)-(322, 101)
pic.Line (322, 101)-(340, 100)
pic.Line (340, 100)-(322, 99)
pic.Line (322, 99)-(320, 90)
End Sub
creates an interesting shape in the PictureBox 'pic'. I'm guessing that the 'J' loop and 'C=RND16+1' is to change the Colour
Yea, it does:-
-
May 22nd, 2013, 07:41 PM
#28
Re: Visual Basic 1 code?
@Niya,
That looks like a joust (or whatever its called) used in the sport of the same name.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 22nd, 2013, 08:13 PM
#29
Re: Visual Basic 1 code?
Joust is the name of the sport, the instrument used is called a lance.
-
May 22nd, 2013, 08:23 PM
#30
Re: Visual Basic 1 code?
This takes me waaay back lol. Yea teh | looks like a :
When I get home from work I am gonna see if my old QBasic code on some floppies still read lol
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 22nd, 2013, 08:37 PM
#31
Re: Visual Basic 1 code?
Are you sure its not Apple][c BASIC or Amiga BASIC? If QBasic doesnt have the Connect statement, one of the 2 languages I mentioned might. I used them both before. It sounds familiar
-
May 23rd, 2013, 01:28 AM
#32
Re: Visual Basic 1 code?
For what it's worth, my interpretation of lines 830 to 890 in VB:
Code:
'
' All variables defined as Single except 'C' which is Long
'
For J = 1 To 100
I = 3.2 * J
'C = Rnd * 16 + 1
C = RGB(255 * Rnd, 255 * Rnd, 255 * Rnd)
X1 = (320 - I) + Rnd * I
X2 = Rnd * I + 319
Y1 = (100 - J) + Rnd * J
Y2 = Rnd * J + 99
pic.PSet (X1, Y1), C
pic.PSet (X2, Y2), C
pic.PSet (X1, Y2), C
pic.PSet (X2, Y1), C
Next J
which creates something that looks lke an 'explosion' of 'dots' centred on the 'handle' of the 'Lance'. (i.e. The density of the dots decreases as the distance from the 'handle' increases.)
-
May 23rd, 2013, 02:01 AM
#33
Re: Visual Basic 1 code?
In QBasic we could declare a sub
What if we name it 'Connect' and write the code that Doogle posted? and simply called it
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
-
May 23rd, 2013, 02:30 AM
#34
Thread Starter
Junior Member
Re: Visual Basic 1 code?
Can BasicA also have subroutines?
And thanks for all the effort guys. 
Also Floris, shouldn't you take that picture down?
-
May 23rd, 2013, 03:02 AM
#35
Re: Visual Basic 1 code?
That font definitely reminds me of Apple][c BASIC, you guys sure you got the "Basics" right?
-
May 23rd, 2013, 03:46 AM
#36
Thread Starter
Junior Member
Re: Visual Basic 1 code?
No, actually we're not sure. But since the only BASIC I know is TI-Basic, I don't know.
-
May 23rd, 2013, 05:14 AM
#37
New Member
Re: Visual Basic 1 code?
it must run on an computer that was at the studio of dragonbal z in 1992
if you want to see the code i can PM it
Last edited by Floris497; May 23rd, 2013 at 05:17 AM.
-
May 23rd, 2013, 05:36 AM
#38
Re: Visual Basic 1 code?
 Originally Posted by stefan bauwens
Can BasicA also have subroutines?
I don't think so at least not in the fashion of a named sub
BasicA needed to make use of the GoSub Return methods to execute a sub procedure and the sub procedure was identified by the line number rather than a name.
-
May 23rd, 2013, 06:31 AM
#39
Thread Starter
Junior Member
Re: Visual Basic 1 code?
 Originally Posted by Niya
Yea, it does:-

It's a star stretched out.
-
May 23rd, 2013, 10:14 AM
#40
New Member
Re: Visual Basic 1 code?
thats interesting, what kind of basic did you use for that? the code said ### STAR ### so that can be true.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|