473,712 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pass-through queries and parameters

Let's assume that we have a database on some SQL server (let it be MS SQL
Server) and that we want to execute some parameterized query as a
pass.through query. How can we pass parameters to the server ?
Is it possible to use parameters in pass-through queries ?

An additional question: Is it possible to connect to a database on MySQL or
PostgreSQL using ADO ?
Is it possible to execute pass-through queries with parameters, using ADO
command object ?

Thanks!
Nov 13 '05 #1
7 21630
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SQL Pass Through (SPT) queries are used in DAO .mdb files, only.

Sending parameters to an SPT means the SPT is calling a stored procedure
(SP).

I set up a QueryDef as an SPT. Then in VBA code I set the .SQL property
of the QueryDef w/ the SP and its parameters. E.g.:

dim strSQL as string
dim db as dao.database
dim qd as dao.querydef

strSQL = "My_Procedu re param1, param2"

set db = currentdb
set qd = db.querydefs("m y query")
qd.sql = strSQL
qd.Execute

' or use a Recordset to get resultset from SP

dim rs as dao.recordset
set rs = qd.openrecordse t()

You can connect to any ODBC database using ADO as long as you have that
database's ODBC driver. If that database has an OLEDB driver you can
use that. You can use the ADO Command object to set up the parameters
for a call to an SP. Read the Access Help articles on using ADO. The
Access Help Contents hierarchy is:

Microsoft ActiveX Data Objects (ADO)
Microsoft ActiveX Data Objects (ADO)
Microsoft ADO Programmer's Reference

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlWCloechKq OuFEgEQJ+4ACePz oy+XHWDJtw/aCdyGBaK93O2QwA oNoI
EqIzWhaJLAe1/EWTJrwmKDgi
=uuqd
-----END PGP SIGNATURE-----
Zlatko Matić wrote:
Let's assume that we have a database on some SQL server (let it be MS SQL
Server) and that we want to execute some parameterized query as a
pass.through query. How can we pass parameters to the server ?
Is it possible to use parameters in pass-through queries ?

An additional question: Is it possible to connect to a database on MySQL or
PostgreSQL using ADO ?
Is it possible to execute pass-through queries with parameters, using ADO
command object ?

Nov 13 '05 #2
I didn't understand you exactly...
My concern is about how to execute a pass-through parameterized query from
Access front-end on MS SQL Server.
I successfully executed several queries without parameters, but don.t know
how to execute pass-through query with parameters.
For example, we have a stored procedure dbo.procedure1 with 3 input
parameters @param1,@param2 ,param3.
Lets say that the sql is "SELECT * from dbo.Table1 WHERE @param1=value1 and
@param2=value2 and @param3=value3" . Instead of calling the procedure on the
server, I would like to have the SQL code on the front end. Therefore I need
some kind of pass-through query or some sql string that would be transfered
to the server.
I have also tried to execute the query using ADO command and Parameter's
object and query string (adCmdText), but the server asked parameters to be
declared inside the string. I put then "DECLARE @param1 type1, @param2
type2, @param3 type3" before the select statement in the string, but then
VBA said that the syntax is wrong. Now I don't know how to solve it...
Can I reference the name of the pass-through query in ADODB command object,
instead of using string and adCmdText ?
Does anyone has an idea how to execute a parameterized query on the SQL
Server, calling it from Access front-end ?
I know how to do it in Access Project, but don't know how to do it in
..mdb....
Please, either direct pass-through query either ADO...I don't like DAO.

Thanks.
You
"MGFoster" <me@privacy.com > je napisao u poruci interesnoj
grupi:oo******* **********@news read2.news.pas. earthlink.net.. .
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SQL Pass Through (SPT) queries are used in DAO .mdb files, only.

Sending parameters to an SPT means the SPT is calling a stored procedure
(SP).

I set up a QueryDef as an SPT. Then in VBA code I set the .SQL property
of the QueryDef w/ the SP and its parameters. E.g.:

dim strSQL as string
dim db as dao.database
dim qd as dao.querydef

strSQL = "My_Procedu re param1, param2"

set db = currentdb
set qd = db.querydefs("m y query")
qd.sql = strSQL
qd.Execute

' or use a Recordset to get resultset from SP

dim rs as dao.recordset
set rs = qd.openrecordse t()

You can connect to any ODBC database using ADO as long as you have that
database's ODBC driver. If that database has an OLEDB driver you can
use that. You can use the ADO Command object to set up the parameters
for a call to an SP. Read the Access Help articles on using ADO. The
Access Help Contents hierarchy is:

Microsoft ActiveX Data Objects (ADO)
Microsoft ActiveX Data Objects (ADO)
Microsoft ADO Programmer's Reference

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlWCloechKq OuFEgEQJ+4ACePz oy+XHWDJtw/aCdyGBaK93O2QwA oNoI
EqIzWhaJLAe1/EWTJrwmKDgi
=uuqd
-----END PGP SIGNATURE-----
Zlatko Matić wrote:
Let's assume that we have a database on some SQL server (let it be MS SQL
Server) and that we want to execute some parameterized query as a
pass.through query. How can we pass parameters to the server ?
Is it possible to use parameters in pass-through queries ?

An additional question: Is it possible to connect to a database on MySQL
or PostgreSQL using ADO ?
Is it possible to execute pass-through queries with parameters, using
ADO command object ?

Nov 13 '05 #3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pass through queries (SPT) are run using DAO. If you use ADO it is NOT
an SPT. SPTs require a QueryDef, i.e., a DAO object in an .mdb file.

How to set up a QueryDef:

Open a new QueryDef in Design View.
- From the main menu select Query > SQL Specific > Pass through. The view
will change to the SQL view.
Put some junk phrase in the SQL view - this will be replaced in the
following steps.
Save this QueryDef w/ a name like "mySPT."
Look at the VBA code in my original posting. Substitue "mySPT" for
"My_Procedu re."
Put your parameter values in place of "param1" and "param2" and add your
3rd parameter value.
Run the code. The SPT will execute the procedure on SQL Server.

How to run a stored procedure (SP) using ADO. The SP doesn't return any
records. Set up a Command object "cmd" and do this:

cmd.CommandText = "mySPT 'param1', param2"
cmd.CommandType = adCmdStoredProc
cmd.Execute

' or, if the SP returns records - not updateable.
' To open an updateable recordset use the recordset's Open method.
' AFAIK, SP recordsets are not updateable, i.e., Read Only.

Set rs = cmd.Execute

Substitute your SP's name for "mySPT," and your parameter values for
'param1' and param2, and, again, add your 3rd parameter. Param1 is a
string value; param2 is a numeric value - change to suit your needs.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQla5VYechKq OuFEgEQJluwCfSE XmZEJmtsJ7e4o9R PGUts07DeEAoOMP
iAYniMgHESoxdP5 tP952unVR
=1oss
-----END PGP SIGNATURE-----

Zlatko Matic wrote:
I didn't understand you exactly...
My concern is about how to execute a pass-through parameterized query from
Access front-end on MS SQL Server.
I successfully executed several queries without parameters, but don.t know
how to execute pass-through query with parameters.
For example, we have a stored procedure dbo.procedure1 with 3 input
parameters @param1,@param2 ,param3.
Lets say that the sql is "SELECT * from dbo.Table1 WHERE @param1=value1 and
@param2=value2 and @param3=value3" . Instead of calling the procedure on the
server, I would like to have the SQL code on the front end. Therefore I need
some kind of pass-through query or some sql string that would be transfered
to the server.
I have also tried to execute the query using ADO command and Parameter's
object and query string (adCmdText), but the server asked parameters to be
declared inside the string. I put then "DECLARE @param1 type1, @param2
type2, @param3 type3" before the select statement in the string, but then
VBA said that the syntax is wrong. Now I don't know how to solve it...
Can I reference the name of the pass-through query in ADODB command object,
instead of using string and adCmdText ?
Does anyone has an idea how to execute a parameterized query on the SQL
Server, calling it from Access front-end ?
I know how to do it in Access Project, but don't know how to do it in
.mdb....
Please, either direct pass-through query either ADO...I don't like DAO.

Thanks.
You
"MGFoster" <me@privacy.com > je napisao u poruci interesnoj
grupi:oo******* **********@news read2.news.pas. earthlink.net.. .
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SQL Pass Through (SPT) queries are used in DAO .mdb files, only.

Sending parameters to an SPT means the SPT is calling a stored procedure
(SP).

I set up a QueryDef as an SPT. Then in VBA code I set the .SQL property
of the QueryDef w/ the SP and its parameters. E.g.:

dim strSQL as string
dim db as dao.database
dim qd as dao.querydef

strSQL = "My_Procedu re param1, param2"

set db = currentdb
set qd = db.querydefs("m y query")
qd.sql = strSQL
qd.Execute

' or use a Recordset to get resultset from SP

dim rs as dao.recordset
set rs = qd.openrecordse t()

You can connect to any ODBC database using ADO as long as you have that
database's ODBC driver. If that database has an OLEDB driver you can
use that. You can use the ADO Command object to set up the parameters
for a call to an SP. Read the Access Help articles on using ADO. The
Access Help Contents hierarchy is:

Microsoft ActiveX Data Objects (ADO)
Microsoft ActiveX Data Objects (ADO)
Microsoft ADO Programmer's Reference

--
MGFoster:::mg f00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlWCloechKq OuFEgEQJ+4ACePz oy+XHWDJtw/aCdyGBaK93O2QwA oNoI
EqIzWhaJLAe 1/EWTJrwmKDgi
=uuqd
-----END PGP SIGNATURE-----
Zlatko Matić wrote:
Let's assume that we have a database on some SQL server (let it be MS SQL
Server) and that we want to execute some parameterized query as a
pass.throu gh query. How can we pass parameters to the server ?
Is it possible to use parameters in pass-through queries ?

An additional question: Is it possible to connect to a database on MySQL
or PostgreSQL using ADO ?
Is it possible to execute pass-through queries with parameters, using
ADO command object ?


Nov 13 '05 #4
Bri
Your original message sounded like you wanted to use parameters in the
passthrough itself, not in an SP on the server. MGFoster answered the
question based on that (ie create an SQL string and make it the .SQL
property of an existing saved passthrough query).

If you are wanting to use the passthrough to execute an SP with
parameters then just set the SQL of the passthrough to:
Execute MySP "param1", "Param2"

--
Bri

Zlatko Matic wrote:
I didn't understand you exactly...
My concern is about how to execute a pass-through parameterized query from
Access front-end on MS SQL Server.
I successfully executed several queries without parameters, but don.t know
how to execute pass-through query with parameters.
For example, we have a stored procedure dbo.procedure1 with 3 input
parameters @param1,@param2 ,param3.
Lets say that the sql is "SELECT * from dbo.Table1 WHERE @param1=value1 and
@param2=value2 and @param3=value3" . Instead of calling the procedure on the
server, I would like to have the SQL code on the front end. Therefore I need
some kind of pass-through query or some sql string that would be transfered
to the server.
I have also tried to execute the query using ADO command and Parameter's
object and query string (adCmdText), but the server asked parameters to be
declared inside the string. I put then "DECLARE @param1 type1, @param2
type2, @param3 type3" before the select statement in the string, but then
VBA said that the syntax is wrong. Now I don't know how to solve it...
Can I reference the name of the pass-through query in ADODB command object,
instead of using string and adCmdText ?
Does anyone has an idea how to execute a parameterized query on the SQL
Server, calling it from Access front-end ?
I know how to do it in Access Project, but don't know how to do it in
.mdb....
Please, either direct pass-through query either ADO...I don't like DAO.

Thanks.
You
"MGFoster" <me@privacy.com > je napisao u poruci interesnoj
grupi:oo******* **********@news read2.news.pas. earthlink.net.. .
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SQL Pass Through (SPT) queries are used in DAO .mdb files, only.

Sending parameters to an SPT means the SPT is calling a stored procedure
(SP).

I set up a QueryDef as an SPT. Then in VBA code I set the .SQL property
of the QueryDef w/ the SP and its parameters. E.g.:

dim strSQL as string
dim db as dao.database
dim qd as dao.querydef

strSQL = "My_Procedu re param1, param2"

set db = currentdb
set qd = db.querydefs("m y query")
qd.sql = strSQL
qd.Execute

' or use a Recordset to get resultset from SP

dim rs as dao.recordset
set rs = qd.openrecordse t()

You can connect to any ODBC database using ADO as long as you have that
database's ODBC driver. If that database has an OLEDB driver you can
use that. You can use the ADO Command object to set up the parameters
for a call to an SP. Read the Access Help articles on using ADO. The
Access Help Contents hierarchy is:

Microsoft ActiveX Data Objects (ADO)
Microsoft ActiveX Data Objects (ADO)
Microsoft ADO Programmer's Reference

--
MGFoster:::mg f00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlWCloechKq OuFEgEQJ+4ACePz oy+XHWDJtw/aCdyGBaK93O2QwA oNoI
EqIzWhaJLAe 1/EWTJrwmKDgi
=uuqd
-----END PGP SIGNATURE-----
Zlatko Matić wrote:
Let's assume that we have a database on some SQL server (let it be MS SQL
Server) and that we want to execute some parameterized query as a
pass.throu gh query. How can we pass parameters to the server ?
Is it possible to use parameters in pass-through queries ?

An additional question: Is it possible to connect to a database on MySQL
or PostgreSQL using ADO ?
Is it possible to execute pass-through queries with parameters, using
ADO command object ?


Nov 13 '05 #5
Hello.

Thank you for suggestions, but I knpow hoe to execute stored procedures
placed on SQL Server. It's quite easy by using ADO...
But I want to have saved pass-through query on the front-end, in order to
have all the code on the front-end.
My problem is how to pass parameters to parameterized pass-through query
dynamically. It means I have a pass-through query with several parameters
(@param1, @param2, @param3 etc...) that are changing every time the
pass-through query is executed. These parameters are referenced to controls
on some forms.
When I was working in .adp, I was using Input Parameters property of forms
and reports to pass such referenced values, but in .mdb there is no such
property. In regular JET queries you can reference controls in queries
directly . But, how to solve it in PASS-THROUGH QUERIES ????
I suppose that it would be possible to acomplish the task by query string in
ADO (adCmdText),and to break the string in order to insert some variable
that would be references to the form control...but it seems to be complex to
write the code and I would like to avoid such strings, because thar is a
beautifull container that is called pass-through query and I would like to
use it.
I was searching a lot on the internet also, and couldn't find anything
specific concernig this issue...
Am I missing something, or it is impossible to use parameters in
pass-through queries ?
"Bri" <no*@here.com > je napisao u poruci interesnoj
grupi:ELA5e.927 774$Xk.356022@p d7tw3no...
Your original message sounded like you wanted to use parameters in the
passthrough itself, not in an SP on the server. MGFoster answered the
question based on that (ie create an SQL string and make it the .SQL
property of an existing saved passthrough query).

If you are wanting to use the passthrough to execute an SP with parameters
then just set the SQL of the passthrough to:
Execute MySP "param1", "Param2"

--
Bri

Zlatko Matic wrote:
I didn't understand you exactly...
My concern is about how to execute a pass-through parameterized query
from Access front-end on MS SQL Server.
I successfully executed several queries without parameters, but don.t
know how to execute pass-through query with parameters.
For example, we have a stored procedure dbo.procedure1 with 3 input
parameters @param1,@param2 ,param3.
Lets say that the sql is "SELECT * from dbo.Table1 WHERE @param1=value1
and @param2=value2 and @param3=value3" . Instead of calling the procedure
on the server, I would like to have the SQL code on the front end.
Therefore I need some kind of pass-through query or some sql string that
would be transfered to the server.
I have also tried to execute the query using ADO command and Parameter's
object and query string (adCmdText), but the server asked parameters to
be declared inside the string. I put then "DECLARE @param1 type1, @param2
type2, @param3 type3" before the select statement in the string, but then
VBA said that the syntax is wrong. Now I don't know how to solve it...
Can I reference the name of the pass-through query in ADODB command
object, instead of using string and adCmdText ?
Does anyone has an idea how to execute a parameterized query on the SQL
Server, calling it from Access front-end ?
I know how to do it in Access Project, but don't know how to do it in
.mdb....
Please, either direct pass-through query either ADO...I don't like DAO.

Thanks.
You
"MGFoster" <me@privacy.com > je napisao u poruci interesnoj
grupi:oo******* **********@news read2.news.pas. earthlink.net.. .
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SQL Pass Through (SPT) queries are used in DAO .mdb files, only.

Sending parameters to an SPT means the SPT is calling a stored procedure
(SP).

I set up a QueryDef as an SPT. Then in VBA code I set the .SQL property
of the QueryDef w/ the SP and its parameters. E.g.:

dim strSQL as string
dim db as dao.database
dim qd as dao.querydef

strSQL = "My_Procedu re param1, param2"

set db = currentdb
set qd = db.querydefs("m y query")
qd.sql = strSQL
qd.Execute

' or use a Recordset to get resultset from SP

dim rs as dao.recordset
set rs = qd.openrecordse t()

You can connect to any ODBC database using ADO as long as you have that
database's ODBC driver. If that database has an OLEDB driver you can
use that. You can use the ADO Command object to set up the parameters
for a call to an SP. Read the Access Help articles on using ADO. The
Access Help Contents hierarchy is:

Microsoft ActiveX Data Objects (ADO)
Microsoft ActiveX Data Objects (ADO)
Microsoft ADO Programmer's Reference

--
MGFoster:::m gf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlWCloechKq OuFEgEQJ+4ACePz oy+XHWDJtw/aCdyGBaK93O2QwA oNoI
EqIzWhaJLA e1/EWTJrwmKDgi
=uuqd
-----END PGP SIGNATURE-----
Zlatko Matić wrote:

Let's assume that we have a database on some SQL server (let it be MS
SQL Server) and that we want to execute some parameterized query as a
pass.throug h query. How can we pass parameters to the server ?
Is it possible to use parameters in pass-through queries ?

An additional question: Is it possible to connect to a database on MySQL
or PostgreSQL using ADO ?
Is it possible to execute pass-through queries with parameters, using
ADO command object ?



Nov 13 '05 #6
Zlatko Matic wrote:
Hello.

Thank you for suggestions, but I knpow hoe to execute stored
procedures placed on SQL Server. It's quite easy by using ADO...
But I want to have saved pass-through query on the front-end, in order to have
all the code on the front-end.
My problem is how to pass parameters to parameterized pass-through
query dynamically. It means I have a pass-through query with several
parameters (@param1, @param2, @param3 etc...) that are changing every
time the pass-through query is executed. These parameters are
referenced to controls on some forms.
When I was working in .adp, I was using Input Parameters property of
forms and reports to pass such referenced values, but in .mdb there
is no such property. In regular JET queries you can reference
controls in queries directly . But, how to solve it in PASS-THROUGH
QUERIES ???? I suppose that it would be possible to acomplish the task by
query
string in ADO (adCmdText),and to break the string in order to insert
some variable that would be references to the form control...but it
seems to be complex to write the code and I would like to avoid such
strings, because thar is a beautifull container that is called
pass-through query and I would like to use it.
I was searching a lot on the internet also, and couldn't find anything
specific concernig this issue...
Am I missing something, or it is impossible to use parameters in
pass-through queries ?


I just change the SQL of the pass-through's QueryDef so it includes the hard
coded parameter values and then execute it. Works fine for me.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #7
Bri
Hi,

Passthrough queries do not have Parameters as they are 'Passed Through'
directly to the server. The only way I know of to do what you want is to
build the SQL of the Passthrough query as a string and then change the
..SQL property of the query. Once you change the .SQL Property then you
can do any of the DAO query operations you want. The SQL you build can
be either a string with the Execute command (run a SP on the BE) or with
the actual T-SQL you want to run (still runs on BE but all the logic is
stored in the FE). You were given examples of these in previous posts.
What difference does it make if you modify the .Parameters Property or
the .SQL Property of the stored query before you work with it?

--
Bri

Zlatko Matic wrote:
Hello.

Thank you for suggestions, but I knpow hoe to execute stored procedures
placed on SQL Server. It's quite easy by using ADO...
But I want to have saved pass-through query on the front-end, in order to
have all the code on the front-end.
My problem is how to pass parameters to parameterized pass-through query
dynamically. It means I have a pass-through query with several parameters
(@param1, @param2, @param3 etc...) that are changing every time the
pass-through query is executed. These parameters are referenced to controls
on some forms.
When I was working in .adp, I was using Input Parameters property of forms
and reports to pass such referenced values, but in .mdb there is no such
property. In regular JET queries you can reference controls in queries
directly . But, how to solve it in PASS-THROUGH QUERIES ????
I suppose that it would be possible to acomplish the task by query string in
ADO (adCmdText),and to break the string in order to insert some variable
that would be references to the form control...but it seems to be complex to
write the code and I would like to avoid such strings, because thar is a
beautifull container that is called pass-through query and I would like to
use it.
I was searching a lot on the internet also, and couldn't find anything
specific concernig this issue...
Am I missing something, or it is impossible to use parameters in
pass-through queries ?
"Bri" <no*@here.com > je napisao u poruci interesnoj
grupi:ELA5e.927 774$Xk.356022@p d7tw3no...
Your original message sounded like you wanted to use parameters in the
passthrough itself, not in an SP on the server. MGFoster answered the
question based on that (ie create an SQL string and make it the .SQL
property of an existing saved passthrough query).

If you are wanting to use the passthrough to execute an SP with parameters
then just set the SQL of the passthrough to:
Execute MySP "param1", "Param2"

--
Bri

Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3146
by: Seeker | last post by:
Newbie question here... I have a form with some radio buttons. To verify that at least one of the buttons was chosen I use the following code ("f" is my form object) : var btnChosen; for (count = 0; count <= 1; count++) { if (eval(f.RadioButtons.checked)) { btnChosen = true; }
110
9930
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object must be an object instead of
0
1336
by: uli2003wien | last post by:
Dear group, PASS (SQL-Server user group) is about to start founding a branch in Vienna. I went to SQLCON and met some guys from the German PASS group and decided to become a member of PASS, decided to look for other individuals to take part in an Austrian branch of PASS based in Vienna, so whoever is interested may take a look at http://www.sqlpass.de/Default.aspx?tabid=191 in order to get to contact me to get things going....
4
3408
by: z_learning_tester | last post by:
I'm reading the MS press C# book and there seems to be a contradiction. Please tell me which one is correct, 1 or 2. Thanks! Jeff 1. First it gives the code below saying that it prints 0 then 42. They say that 42 is printed the second time since the value was wrapped in a class and therefore became passed by reference. (sorry for any typos I am a newbie here ;-)
3
5484
by: Brett | last post by:
I have several classes that create arrays of data and have certain properties. Call them A thru D classes, which means there are four. I can call certain methods in each class and get back an array of data. All four classes are the same except for the number of elements in their arrays and the data. I have a MainClass (the form), which processes all of these arrays. The MainClass makes use of third party objects to do this. There...
4
2254
by: Marcelo | last post by:
Any suggestion? Thanks Marcelo
2
6431
by: blufox | last post by:
What is difference between pass by address and pass by reference? Any pointers or links will be appreciated.
6
2712
by: lisp9000 | last post by:
I've read that C allows two ways to pass information between functions: o Pass by Value o Pass by Reference I was talking to some C programmers and they told me there is no such thing as pass by reference in C since you are just passing an address (or a pointer value address I guess?). So I was wondering is this correct?
15
2019
by: ramif | last post by:
Does call by reference principle apply to pointers?? Is there a way to pass pointers (by reference) to functions? Here is my code: #include <stdio.h> #include <stdlib.h>
12
11097
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
0
8701
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9007
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5942
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4713
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3154
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.