Questions tagged [byval]
66 questions
0
votes
1 answer
use caption of pressed button from main form in query of other form
My problem is:
Main form has 9 command buttons and continuous subform. Click on some button open other form with text box for entering quantity and two command buttons. When click on the first button I want to use caption of pressed button from…

nesomis
- 29
- 7
-1
votes
1 answer
ByVal in VBA Events
I am trying to gain some ground on VBA
I know this is pretty basic but in a Worksheet Event such as Change
Private Sub Worksheet_Change(ByVal Target as Range)
Target.Font.ColorIndex = 5
End Sub
I 've searched what ByVal means in this link
And…

ExoticBirdsMerchant
- 1,466
- 8
- 28
- 53
-1
votes
1 answer
using ByRef over ByVal to hit a database
I'm using an ajax call to hit a database to load a drop down. Now, this is something we're going to be doing a lot where I work now that someone's figured out how to do it.
My supervisor has asked me to try and make my ajax call one that I can…

Kendra
- 769
- 1
- 20
- 34
-2
votes
2 answers
Hi ... Ever used byval and byref in arrays in VB??... I passed an array byval then byref... in both, ARRAY changes are brought out of procedure..why?
pls copy paste program below and try it out...
'************
Imports System
Module Program
Sub inputproc(ByRef pstudarr() As String)
Dim count As Integer
For count = 0 To 3
Console.WriteLine("Input name " & count)
pstudarr(count) =…

maryline
- 1
- 1
-2
votes
2 answers
c++ function call by value not work
I have a problem with this code:
The problem is when I see the image original, is modified by "borrarFondo()" but this function is called from "segmentarHoja" and here entry img by value, but img modifies.
void borrarFondo(Mat& img){
img = ~img;
…

user3779874
- 57
- 7
-5
votes
1 answer
C++ Programming ( advantages of by ref & by val) query? / methods of editing struct other than byRef
I am going over a mock exam in revision for my test, and one question on the paper confuses me.
Q.)An application is required to pass a structure to a function, which will modify the contents of the structure such that on return from the function…

RNewell122
- 128
- 10