| | |
Convert qbasic code to vba
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Solved Threads: 0
I hope this is the correct forum
I am converting some qbasic to vba and have come undone. The qbasic lines -
FOR I = 1 TO A
IF B(I) > 0 THEN
PRINT "("; C(I); "="; D(I); ")";
END IF
NEXT I
screen prints the values for SLENGTH and besteachtype on the same row. There may be up to five entries on the row such as -
( 1749 = 1 )( 1542 = 1 )( 717 = 1)( 1774 = 1 )
The VBA lines I have so far are -
For I = 1 To A
If B(I) > 0 Then
result = C(I) & " = " & D(I)
End If
Next I
where "result" is defined as a string. The intention is to insret "result" into a spreadsheet. However only the last values 1774 = 1 are entered so I assume the others are being overwritten. I also assume that this has something to do with the semi-colons but I can't find an equivalent in VBA. Any suggestions?
Thanks
Peter
I am converting some qbasic to vba and have come undone. The qbasic lines -
FOR I = 1 TO A
IF B(I) > 0 THEN
PRINT "("; C(I); "="; D(I); ")";
END IF
NEXT I
screen prints the values for SLENGTH and besteachtype on the same row. There may be up to five entries on the row such as -
( 1749 = 1 )( 1542 = 1 )( 717 = 1)( 1774 = 1 )
The VBA lines I have so far are -
For I = 1 To A
If B(I) > 0 Then
result = C(I) & " = " & D(I)
End If
Next I
where "result" is defined as a string. The intention is to insret "result" into a spreadsheet. However only the last values 1774 = 1 are entered so I assume the others are being overwritten. I also assume that this has something to do with the semi-colons but I can't find an equivalent in VBA. Any suggestions?
Thanks
Peter
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: Contactless Card Reader problem
- Next Thread: Problem running code
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check checkbox code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy image images inline insert intel internet listview mobile monitor ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save searchbox searchvb.net select serial server soap sorting table tcp text textbox timer toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





