Is it possible when we can change the solution configuration from Debug and Release, we make certain chunk of code ignore by the compiler,
which also means those chunk of code only run in Debug environment?
Consider following code:
delegate int MyDelegate();
MyDelegate d1=new MyDelegate(M1);
MyDelegate d2=new MyDelegate(M2);
MyDelegate d3=new MyDelegate(M3);
MyDelegate compDelegate=d1+d2+d3;
public void delegateCall(MyDelegate myCompDelegate, int Position){
//call the method by position
}
If I...
Hi, I have used netbeans which built-in Tomcat 5.5 to develop jsp pages, and I am using JDK 1.5.
In the JSP page, there are lots of generics here and there, and it runs perfectly using netbean built-in Tomcat 5.5.17.
After development, I am going deploy the project on a server. Hence I am...
Hi lespaul,
Do you mean to bind the following sql to control source?
sSQL = "Update tblUser Set [ischecked] = [ControlOnForm?] where userId='abc'"
>>
do you really want the userId hardcoded or do you need to get that from the control on the form too?
<<
ans: need to get that from the control...
For the following code chk is a check box, ischecked is a yes/no field.
Dim sSQL as string
sSQL = "Select [ischecked] from tbluser where userId='abc'"
chk.ControlSource = sSQL
chk.Requery
But when I run the following vba code, no matter ischecked is yes or no, it always shows me the checkbox...
I have a listbox call lst with two columns, what I want to do is to populate this two column with "firstdata" and "seconddata" respectively.
What I do is:
Me.lst.RowSource = """firstdata""; ""seconddata"""
But I see nothing appear, what is the corect way to achieve in vba?
Thanks, this method worked nicely, but actually I am creating this query using vba. How to do this in vba?
Followed is the code
====start of code===
private sub command1_click()
Dim db As DAO.Database
Dim qd As DAO.QueryDef
Dim strSQL As String
Dim...
1)How to set show or not show key column for list box in propeties windows?
2)For list box, after doing
lstListBox.rowsource="select field1, field2 from tbl"
lstListBox.requery
How to
a)Set show keycolumn;
b)make the first item in the listbox selected?A
I have a table with 3 tables, which is orderID, Detail and price.
I write a Query
SELECT * FROM [tbl];
in the result table it shows me orderID, Field0 and price(Notice Detail has changed to Field0)
How do I show Detail as it is without changing it to Field0?
Something to note:
1. I don't have...
Wow, this is very helpful, thanks:)
1)But how about pages, is it allpages?
2)In a single user environment, other than opened tables, queries, forms, reports, pages, does there exist another object that may possibly locked the tables?
I have two table which is c:\db1.mdb; c:\db2.mdb
The user is currently using c:\main.mdb
In main.mdb, I have a form, and have a combobox with two value, which is db1.mdb and db2.mdb.
If the user choose db2.mdb, delete all the current db1.mdb link tables(if there is any), and import all the...
I wish to detect is there any opened tables, queries, forms, reports, pages(item that may potentially locked the table, and close them automatically using VBA. How to do this?
I have a form named form1 with one control on it, it is a label named label1
I have a class named Class1.
Followed is the code of form 1 and Class1
form1
====
Option Explicit
Dim cls1 As New Class1
Private Sub Form_Activate()
cls1.setLbl Me.Label1
cls1.test
End Sub
Class1
=====
Dim lbl As...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.