Skip to main content

All Questions

Tagged with
0 votes
1 answer
75 views

Number required for function error in qb64

I am writing a qb64 / QBasic software program to convert a numerical grade 0-100 to a letter grade (a,b,c,d,f). I have set it up so that strings/arrays are used to allow infinite grades to be entered. ...
Ian L's user avatar
  • 1
0 votes
2 answers
288 views

Datastage Basic - How to Supress "previously undefined" Warning Message in Transform Function

I have a datastage routine transform function, that does something a bit more complicated than the following(Takes in Arg1 which can be null): Ans = Len(Arg1) In certain situations I am calling this ...
David Rogers's user avatar
  • 2,712
0 votes
1 answer
574 views

How to calculate the perimeter of a cuboid?

Given is the length, breadth, and height of a cuboid. Your task is to calculate its Perimeter. Note: Formula for the perimeter of the cuboid is 4(Length + Breadth + Height) Input User Task: Since ...
Ashish Karne's user avatar
0 votes
0 answers
26 views

Creating a VBA SUMX2MY2 Function Equivalent

I am attempting to practice my VBA skills by coding the equivalent of SUMX2MY2 in my own function, mySUMX2MY2 (I realize I could use =SUMPRODUCT but I'm practicing functions). I'm trying to do it by ...
Bri Thompson's user avatar
0 votes
1 answer
441 views

Values are not being passed to function in Visual Basic

This is for a homework assignment to make an app that calculates rental rates for vacation homes. All calculation has to be done through functions. Whenever I run the program, all the outputs return ...
Ethan Malloy's user avatar
2 votes
2 answers
557 views

VISUAL BASIC 6 :: Unload Splash Form With Timer

My code is working properly up until the point when I want to unload the newly generated form. I have 2 timers :: 1 for load the splash form and 1 for unload the splash form. Option Explicit ...
GoPro's user avatar
  • 43
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
9 votes
3 answers
2k views

Multi-line functions in Commodore 64 BASIC

So, I'd like to write larger functions in Commodore 64 BASIC. So far, from what I'm seeing from other sources (such as various C64 wikis, as well as the user's manual for the C64 itself,) function ...
user3255569's user avatar
0 votes
0 answers
251 views

XOR codin text Macro LibreOffice

I have an assignment to make a macro in LibreOffice that I have to code a text using XOR operations. the instructions are following. izracunajHash function (password zacetni_hash) - This function ...
Domen Lisjak's user avatar
0 votes
2 answers
15k views

Visual Basic: How can i display the prime numbers between 1 and the inputted number

Hello everyone so i'm trying to find the prime numbers of any input. I want them to be in a listbox and the input in a text box. I would like to use two arguments but i don't know how to. this is the ...
Wes's user avatar
  • 33
0 votes
1 answer
4k views

Visual Basic - How to use a variable from one function in another

I have checked Google, and the suggested answers here, but have had no luck unfortunately. The last thing I need to do is have an email read the rateNbr variable into the email body, but it just ...
Chris's user avatar
  • 219
1 vote
1 answer
629 views

Creating functions (Liberty Basic)

EDIT: Ok I got how arrays work and that part seems to work. Im still having a problem with the functions. I do not understand how functions work correctly. I need to put something in the ( ) ...
user3674894's user avatar
0 votes
2 answers
484 views

Passing String Values in Visual Basic

I'm having trouble trying to pass values that are of the string data type. What can I do to fix this? Sender: Private Sub verButton_Click(sender As Object, e As EventArgs) Handles verButton.Click ...
Wix's user avatar
  • 125
1 vote
1 answer
65 views

How do I write this old piece of BASIC as a PHP Function?

Assume the following variable values were set earlier in the code: LSLATHOR = 1780, NRSLATVER = 34 Then I have these two lines of GWBASIC: 100 PITCHHOR=(LSLATHOR/(NRSLATVER+1)) : LSLATHOR=...
TheRealWitblitz's user avatar