Skip to main content

Questions tagged [basic]

For questions about the BASIC (Beginner’s All-purpose Symbolic Instruction Code) programming language. DO NOT USE TO INDICATE YOUR QUESTION IS SIMPLE!

basic
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
2 votes
2 answers
727 views

LibreOffice Calc Macro - Set two different types of fonts within the same cell

Good morning everyone, I would like to build a Uno Basic macro that allows us to set the formatting one cell in such a way as to have the content first formatted with one character and then ...
Tonky75's user avatar
  • 132
2 votes
3 answers
889 views

PeekInt, PokeInt, Peek, Poke equivalent in C from BASIC

I was wondering what is the equivalent of the command Peek and Poke (Basic and other variants) in C. Something like PeekInt, PokeInt (integer). Something that deals with memory banks, I know in C ...
LazerBlazer's user avatar
0 votes
1 answer
773 views

How do i make this textbox update in real time

Basically i want one textbox to do this: TextBox5.Text = TextBox4.Text / TextBox2.Text It works but if i don't try to input something to the textbox it doesn't update. How do i ?
Mustafa Tosun's user avatar
0 votes
1 answer
69 views

How to return a modified range without modify the spreadsheet

I want my VLOOKUP_RANGE() taking a ByVal VBA Range 'search' to return a modified Range object, to use like =SUMPRODUCT(VLOOKUP_RANGE(H2:I2;A2:B11;2);H3:I3) but the sheet is modified too (the keys are ...
Vincent's user avatar
  • 45
2 votes
1 answer
2k views

How can I fix Visual Studio Code so that it runs and debugs simple basic scripts (.bas files)? [duplicate]

Background I'm a tech writer but have dabbled in coding for many years now. For work, I need to test about a hundred different ancient script samples. The samples are stored in our documentation. They ...
Jared's user avatar
  • 189
2 votes
0 answers
113 views

How to solve this triangle problem in Visual Basic? I don't know if I'm doing it right

Make a program that reads a positive integer no greater than 10, and prints a triangle of numbers as follows: If the number read were 5, then it should print: 1 22 333 4444 55555 The program must ...
robert Esre's user avatar
0 votes
1 answer
155 views

Displaying the Line Number during the execution of a Pick Basic Program in uniVerse

I am utilizing Pick Basic on the uniVerse operating system. Many times, I will need to watch a variable change during a debugging session. I will locate the variable throughout the program and note ...
ButtonKLK's user avatar
1 vote
2 answers
263 views

(in Visual Basic) Is it possible to "loop" or "rotate" through a byte, without using an( if-then-tree) or (and &HFF)?

What I mean is: If a byte has value of 255, and I add 1. It becomes 0 again. Or if I subtract 1 from a zero value it becomes 255. I have a lot of code, that treats bytes like this, and I'd rather not ...
Jhonny Q's user avatar
0 votes
2 answers
69 views

Trying to use math function: sgn... error : sgn is not declared

hmm... I imported:System.math... test as integer=sgn(100) I get the error: sgn is not declared. Other math functions work. So Why? Might Visual Studio not be correctly installed? Thank Yall! ...
Jhonny Q's user avatar
1 vote
1 answer
59 views

Advice on how to fix a Progress Bar code in QuickBASIC

I have a problem that I am hoping someone who is smarter then myself can help me with. I have this bit of code that I am trying to get to work. SUB ShowProgressBar (FileCount%, NCount%, BarWidth%, ...
Andrew Gable's user avatar
0 votes
1 answer
313 views

First column of GridView readonly unless new row

I have a GridView with various columns and rows pulled from a database. In the first column I have a dateEdit repository item. What I would like to do is have this first column readonly for all rows ...
SirTalllPaul's user avatar
1 vote
1 answer
5k views

How to use DateAdd function in Crystal Reports while in Basic Syntax mode

I have a formula in Crystal Reports that is written in Basic Syntax in order for it to be used with the HTML text interpretation. In one part of the code, I would like to add six months to Today's ...
drex's user avatar
  • 13
0 votes
1 answer
312 views

How to convert string "85,123kg" to integer 85? Visual Basic

I'm using 2012 Microsoft Visual Basic for Application 7.1 I have a bunch of strings like "85,123kg" , "123,05kg", "11,21kg". And I want to convert it to Integers like 85, ...
Rotmayer's user avatar
4 votes
0 answers
307 views

What is a "base" program on a Casio calculator?

When I make a program, I have the option to make it either "run" or "base". https://src.mrhitech.repl.co/calcmanual.pdf (backup; the original one seems to have been taken down) ...
MrHiTech's user avatar
  • 109

15 30 50 per page
1
3 4
5
6 7
58