Hello sedj,
I think this is eg. for casting:
Object o = session.getAttribute("abc");
Integer i = (Integer)o;
int ii = i.intValue();
and this is conversion eg.:
Object o = session.getAttribute("abc");
String s = +""o;
int i=Integer.parseInt(s)
Can you explain please when will I use each way...
Hi All,
I use the function getAttributes in my program.
This function return an object.
I want to convert it(the return value) to an int variable.
How can I do it?
Thanks,
mn12
Hi Daisy,
thank you for trying help me.
I want to use the 2nd choise you have suggested,and it nearly works correctly.
the problem:
I get the right number and date,but not the right values on field1 and field2.
e.x:
the table:
number date desc
10 10/2003 "aaa"
10...
Hi,
I use access DB in my vb program,and I have SQL problem.
I have a table with 4 records:date,number and 2 other records.
each number can appear on some dates,e.x.:
number date
10 10/2003
10 1/2003
10 5/2003
20 3/2003
20 5/2003
20 6/2003
I want all...
Hi,
I use access DB in my vb program,and I have SQL problem.
I have a table with 4 records:date,number and 2 other records.
each number can appear on some dates,e.x.:
number date
10 10/2003
10 1/2003
10 5/2003
20 3/2003
20 5/2003
20 6/2003
I want all...
Hi,
I use excel in my vb application.
I use excel by the control (and not by ref).
I try to write on the control(excel workbook) via code,
and I want the values to be displayed at run time.
but--I don't succeed at all.
how can I do it???
thanks for your time.
I have created a DLL,and I want it to return a matrix with values.how can I do that?
can it return a vector of classes,or types? how?
thank you very much!
Hi All,
I create report by excel and use it in vb program.
my report includes text and frames around the cells.
I use the printPreview command in order to display the report.
when I display it on my computer,everything is right.
But when I try to display it on another computer-
everything(both...
thank you,but this I know.
I mean: How do i know the current page number at design time?
I want to use it somewhere in my vb code.
(maybe there is a property or something else)
thank you, but I can't use it because I must know the position(coloumn and row)where the title is.
(the title includes some titles:
aaaa bbb ccc ddd eee--> this is my whole title.
each one of them is a title of a coloumn in my report.
and so I must know exactly where it is(col and row).
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.