Off Topic > Off Topic
Programming Megathread
devildogelite:
For my security class where we need to defend and attack computers we're using debian. I needed to make my own installation media for it, I'm pretty sure I forgeted up a jump drive real good. I can't find it anywhere in device manager or anything. I made another one that worked but now it's not recognized as media but atl east it still shows up and it works.
Maxwell.:
so I'm doing visual studio coding at school and today we were asked to make our own function
--- Code: ---Public Class Form1
Dim variableA As String
Dim variableB As String
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
variableA = InputBox("Enter a number")
variableB = Generate(variableA)
End Sub
Function Generate(ByVal variableA As String, ByRef variableB As String)
variableB = Len(variableA)
variableB = UCase(variableA)
Return variableB
End Function
End Class
--- End code ---
the problem is though is the variableB = Generate(variableA) part, it keeps saying
I'm not really sure what it means, I'm just trying to call my function on variableA
EDIT: fixed it by mending Function Generate(ByVal variableA As String, ByRef variableB As String) to Function Generate(ByVal variableA As String) but now I'm having trouble with global and local variables, it works though
FelipeO_O:
wow
Headcrab Zombie:
--- Quote from: Maxwell. on January 26, 2016, 05:51:26 PM ---but now I'm having trouble with global and local variables
--- End quote ---
Like what
Maxwell.:
--- Quote from: Headcrab Zombie on January 26, 2016, 06:06:11 PM ---Like what
--- End quote ---
well the code doesn't need any global variables, I'm just trying to get it so it uses local variables only because it's seen as bad practise idk