Forum: Visual Basic 4 / 5 / 6 Mar 5th, 2005 |
| Replies: 7 Views: 24,779 Just a few for you
cstr() ' convert to string
ccur() ' convert to curreny
clng() ' convert to long
cint() ' convert to integer
cdbl() ' convert to double
and theres probably a few more if... |
Forum: Visual Basic 4 / 5 / 6 Mar 4th, 2005 |
| Replies: 7 Views: 24,779 not tried cstr() ??
then use listbox.additem method |
Forum: Visual Basic 4 / 5 / 6 Jan 31st, 2005 |
| Replies: 4 Views: 2,457 make an array of option buttons by copying / pasting to a form, you will be asked if you want to make a control array, say yes! then when the time comes to check, just use a loop to go through the... |
Forum: Visual Basic 4 / 5 / 6 Jan 4th, 2005 |
| Replies: 11 Views: 7,259 I would therefore recommend passing the problem to the universities engineering dept. You will need specialised timing electronics made for the nature of te research! Something that has an accurate... |
Forum: Visual Basic 4 / 5 / 6 Jan 1st, 2005 |
| Replies: 3 Views: 3,065 to make it better you could try loading the data from a file, therefore removing the DATA statements... :) |
Forum: Visual Basic 4 / 5 / 6 Dec 21st, 2004 |
| Replies: 6 Views: 4,435 u can use that yes. Its not very powerful though. Have you got an example of the working movement code? i found out where my Basic files were -> all my progs were in an old HD that failed.... so i... |
Forum: Visual Basic 4 / 5 / 6 Dec 20th, 2004 |
| Replies: 6 Views: 4,435 might be a good idea to post a snippet then if it works :) |
Forum: Visual Basic 4 / 5 / 6 Dec 20th, 2004 |
| Replies: 6 Views: 4,435 MS QBasic has the info in the help file although ive not programmed in basic for a while you need to use ONKEY/KEY X = ON or something along those lines... |
Forum: Visual Basic 4 / 5 / 6 Dec 19th, 2004 |
| Replies: 6 Views: 2,949 not thought about using a common dialog control? aka CMDIALOG. If you want the user to specify something what about the inputbox function ie
Dim response
response = InputBox("Enter filename") |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2004 |
| Replies: 4 Views: 4,439 Just a thought:
CLS
row = 0
For y = 0 to 19 ' 20 rows
For x = 0 to row
print "x" ' i cant remember the code for adjacent text
Next |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2004 |
| Replies: 6 Views: 4,182 i forgot... There is also:
Circle x, y, raduis, colour
You can also use win32 api functions as these will offer better performance. This is because VB Refreshed the graphics after every GFX... |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2004 |
| Replies: 6 Views: 4,182 Have you tried the Line statement?
Line x1, y1, x2, y2, colour (can use QBColour() func), something, B (box) or BF (Filled box)
Sorry its been a while since i programmed in VB but:
Line 0,... |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2004 |
| Replies: 11 Views: 7,259 SORRY!!! it was late at night i forgot this was the Basic/VB forum... I think that to get that accuracy you might need to go to a lower level language anyway.... ;) |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2004 |
| Replies: 11 Views: 7,259 BTW this compiles on win32 and above.... |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2004 |
| Replies: 11 Views: 7,259 I dont know if it will help, or if this function has any overhead, but the standard c/c++ function GetTickCount() will return a Long int of milliseconds.
The program
#include <cstdio>
using... |