|
Hi Jocke,
Supposing that you are using vb.net, and not knowing the rest of the code in the function, the error might not point to the objects in your array.
Generally speaking a function will work like so:
Private Function MyStringAlittleShorter(ByVal MyInputString As String, Byval Divider as integer) As String
Return MyInputString.Substring(1, MyInputString.Length / Divider)
End Function
...because I am returning the same type as I declared my function to be (even though one of the Byvals is of a different type).
Now your Byval is an array of type Object, which means that it can contain elements of different types. If you are also trying to return an array, and your function is declared boolean, you would get a type mismatch error. I.e. declare the function to be an array of type object, or perform the logic inside the function, and return a boolean.
Maybe that is the case ?
As for your second question: if the array is of type Object, than you should be able to add new elements of any type. You might get Index out of bounds errors ofcourse.
Hope it helps,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
hi...
i ve a parent node as question, i need a ans to tat question in a child node,by clicking on the button........
spriya
|
|
|
|
|
Shanmugapriya.G wrote: need a ans to tat question in a child node,by clicking on the button
You also need to learn to type. Post your code and someone will help - if they can understand your question.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hi all,
i have developed an application in vb.net and mssql 2000 and create some reports using crystal reports. it is working perfectly on my pc but create some problem on my client's pc.
i used an ODBC Connection Say CrRptOdbc while creating Crystal reports.
normaly i have to create an odbc connection on the Client's pc when i install my application.
in this particular case my client has MS SQLExpress 2005. when i created a SETUP i attached the database file in it. But when i install the same on the client's pc other than Crystal Reports rest is working perfectly.
when i try to fetch a report it show me a dialog box which demand user id and password when i always used Window's Authitications. i tried to create ODBC connection but could not find the file which i attached.
kinly help me how can i configure my crystal reports in this case.
Thanks.
rmshah
Developer
|
|
|
|
|
Hi
You can use dataset For Crystal Report.it's easiast way to use the crystal report.
With the dataset connection string,User Id,Password is not needful.
Cheers
Anubhava Dimri
anubhava.prodata@gmail.com
919250168195
|
|
|
|
|
|
You have to design on your own.
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
WPF is the way to go to create controls like this. This means your whole app will use WPF.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
VB.net and C# has the facility for creating the control.
Cheers
Anubhava Dimri
|
|
|
|
|
Hiya,
That sort of thing probably would not be a control, you would have to write the code for that yourself, which would probably have to be written in C++/C# and it would need a lot of code! Or you could use WPF in there somewhere, but that requires a lot of overhead and can be slow on some computers, but WPF can be quite good.
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".
|
|
|
|
|
I have created an aspx page which displays the list of books in a grid when we search according to a search condition. If i click for details of the book it is displayed in another page. if I need to return to the page where the list is displayed usin a hyperlink or link button what should I do?
|
|
|
|
|
You should start by asking in the ASP.NET forum.
You will end up passing the details on the URL so the page goes to where you want it to.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
try this one
response.redirect(Request.ServerVariables("HTTP_REFERER").ToString)
this will open the previous page for u
Hope it will help....
The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth
|
|
|
|
|
Hardly...
As you are doing a postback, the referrer will be the same page.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
sorry but postback url doesnot take me to the previous page but it takes me to the page where I have to make the search again.
|
|
|
|
|
If the URL of the page containing the search result doesn't represent that page uniquely (i.e. you just populate the result on postback), then your only option to return to that page is to use the history in the browser to go back, so that the post data is resent to recreate the page.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
A quick and easy way to go back to the previous page is to use javascript,
onClick="history.back()"
But as Christian said, you should post on the correct forum in future.
|
|
|
|
|
yhanks for your suggestion. I will surely try this out. Tell me this "history.back()" is a predefined function or should we write the script?
|
|
|
|
|
hi
i want to ask how can i write new line in email message that is sending from application program
and is it different from yahoo and Hotmail
i am sending emails using my program i am writing a message inside my code and i want it appear to the user each sentence in new line how can i write new line so the email message provider understand it
|
|
|
|
|
Environment.NewLine
or, if it's HTML email, use <br/>
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hiiiiii
If you are working in vb 6.0 or vb.net then you use the "VBCRLF" for new line.
Like this
"Your Message" & vbcrlf & "Your Message"
Thanx
Mitesh Khatri
|
|
|
|
|
thanks
i use Envirment.newline and it work
|
|
|
|
|
Don't use VBCRLF in VB.NET, it's just VB6 rubbish. Use .NET whereever you can, so it flows nicely to C# if you ever need to use it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi, I made a program in visual basic 6 that is causing memory error running on Windows XP Embedded.
The runtime error message:
"This instruction at "0x7c910f29" referenced memory at
0x00000000" The memory could not be "read".
Click on OK to terminate the program"
[ OK ]
The total disk space is 1gb, whose 500mb are used by WinXP Embedded.
Does anyone know the possible cause?
I´m not storing any huge string, either any huge collection, etc.
Sometimes this message appears with frequency, others it just happens.
Thanks.
|
|
|
|
|
Looks to me like a problem with a library you call, or you're calling an API that Embedded does not support perhaps ?
Why are you still using VB6 ? It's been dead for 6 years now.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|