Skip to main content

All Questions

Tagged with
-1 votes
2 answers
101 views

VB.NET and DataGridView: how read a specific Cell value

I have a DataGridView of 3 columns and 3 rows (it's just an example). I would like to read only the value of a specific cell (in this example 2x2). How do you do this? I try this code but visual ...
Marco Giglio's user avatar
0 votes
1 answer
99 views

Accessing SQL array element from Libreoffice Basic with Postgres DB

This is a followup with the discussion at: Accessing SQL array element from Libreoffice Basic I have almost the same problem. I am following the above mentioned code, but I get an error. Here is what ...
Z T Minhas's user avatar
0 votes
0 answers
28 views

Why does this assignment of a button object to a 2D array of buttons not work?

I am kind of new to programming in general, especially in Visual Basic. As part of a random project I am doing, I have declared a 2D array of type button and have then populated the array with buttons....
Tom Wright's user avatar
0 votes
1 answer
45 views

Reading current score on batari basic

I need to read score current value for avoid negative number on decrementing. However the following code not working, any idea for solve this ? __Sub_Score_30 if score > 30 then score = score - 30 ...
Eduardo Fabricio's user avatar
1 vote
1 answer
76 views

Getting a random array position in batari basic (atari 2600)

I need to random a new specific position for the player each N cycles of game loop. So my idea was use a ROM array (data) and a rand function using (&) operator for fast processing following the ...
Eduardo Fabricio's user avatar
2 votes
1 answer
58 views

DEF FN(x) How does one transfer / translate "Define Function" command to VB.NET?

The 8bit code is: ... 90 DEF FNX(D)=INT(RND(0)*D*8-D*3) 100 DEF FNDS(D)=INT(SQR(ABS(P(D,0)-P(L,0))^2+ABS(P(D,1)-P(L,1)^2+ABS(P(D,2)-P(L,2))^2)) ... 150 FOR I = 1 TO 9 :... ... 180 P(I,0)=FNX(I):P(I,1)=...
dazeleeper's user avatar
0 votes
1 answer
102 views

Doesn't .setDataArray method accept date type?

The code below, which should creates a jagged array, so that I could then paste its content to the sheet, by using the .setDataArray method, do not work. I got the error: "BASIC runtime error. ...
sergio trajano's user avatar
0 votes
1 answer
91 views

BBC Basic Add an array to another array

I'm trying to add an array to an array mainly using ARRAYLIB. Nothing I have done so far has worked INSTALL @lib$ + "ARRAYLIB" DIM ARRAY1(0) DIM ARRAY2(3) LET ARRAY2() = 1, 2, 3, 4 ARRAY1 is the ...
SollyBunny's user avatar
-3 votes
1 answer
105 views

Second Pair of Eyes required for VB Logic Issue

Everything works! Except the FOR LOOP that calculates the third column in my Results (4,2) array. Interface Design: The loop will not run! Each line works outside of the loop but I've been staring ...
Fazz1967withExplosions's user avatar
0 votes
1 answer
489 views

Assign values to array when a checkbox is checked VB.NET

I have check boxes named checkbox_1, checkbox_2 .... up to checkbox_10. I want to create a loop to store: 1 if the checkbox is checked and 0 if the checkbox is not checked- in the locations(10) array.
phillip87's user avatar
0 votes
1 answer
49 views

Array passing to function in Visual Basic

I have this code and the problem, that PoleCisel2 used in function nulovac does not work with PoleCisel, so in PoleCisel aren't any items in the function. Option Explicit On Module Module1 ...
Catchamouse's user avatar
0 votes
0 answers
113 views

Loops with arrays in Visual Basic

I'm not a programmer. 15 years in IT but I don't write code. Taking this class in Visual Basic to expand my horizons and while I'm doing ok, sometimes I get stumped. We are working on arrays and the ...
Trytondude's user avatar
1 vote
2 answers
435 views

Storing dates in an array in Libreoffice Basic

For the last few days I have been researching this without finding an answer. I have a list of transactions from which I filter a subset. For the subset I store the date and the amount in an array, to ...
user avatar
0 votes
1 answer
160 views

Displaying full array in Liberty BASIC

Going through a tutorial but I cannot figure out how to do this. It wants me to have the program display all 10 names previously entered after the quit sub. I've experimented with some stuff but ...
Dylan843's user avatar
0 votes
1 answer
123 views

App Game Kit BASIC language array out of bound, array empty

I am currently using App Game Kit and trying to learn the BASIC language at the same time. I have this error that have happened in this Function, its in this line: The error show: Array index out of ...
Nicholas369's user avatar

15 30 50 per page