|
Hi can any one help me?
I have got a varible length array and need to find out its length. The way I have made the array is
dim Array() as string
Redim Array(Varible)
Thanks for any help on this.
|
|
|
|
|
By length, do you mean how many items it contains or the total number of all characters in all items in the array?
|
|
|
|
|
I mean the total number of items in the array
Thanks
|
|
|
|
|
If you want to get the number of items present in the array you can use UBound(ArrName)
|
|
|
|
|
you defined your array by redim.
In there you assigned the size by using the variable.
I would check the variable to get the size of the array
note that indexing starts at 0, so if you assign 5 to the variable, the size of the array is 6.
So in general: The size of your array is "variable+1".
I hope I did not missinterpret your question!
Stephan.
|
|
|
|
|
Hi every one
I have a little problem with this issue. I have a Crystal Report Document with parameters (You know every time when you open it, With Crystal Report, a paremeters appears), When I try to open it using VB.net the parameters popup screen shows. My question is
How can i put the parameters into the code in vb.net for disable the parameters popup screen ?
Thanks
This is my code for the parameters. (doesn't work)
Dim paramFields As New CrystalDecisions.Shared.ParameterFields<br />
Dim paramField As New CrystalDecisions.Shared.ParameterField<br />
Dim paramRange As New CrystalDecisions.Shared.ParameterDiscreteValue<br />
<br />
paramField.ParameterFieldName = "FromDates"<br />
paramRange.Value = "01/01/2005"<br />
paramField.CurrentValues.Add(paramRange)<br />
paramFields.Add(paramField)<br />
<br />
Me.CrystalReportViewer1.ParameterFieldInfo = paramFields
Johnny Lizardo
|
|
|
|
|
Hi
I am currently trying to open an excel file using System.Diagnostics.Process.Start("ExcelFileName").
It works correctly in general, but if the installed machine
has excel 2000, it opens excel but the file never opens
and the cells are empty. Is this a bug with Office 2000?
What can be done?
|
|
|
|
|
Hi,
I am trying to create a form with the following
attributes:
1. A sizable border
2. Close button
3. No icon in the upper left hand corner
All of this can be accomplished using the Sizable
FormBorderStyle, but the icon remains. Does anyone know how to do this?
Sumit Domyan
|
|
|
|
|
IIRC, since the form is sizable, you can't get rid of the icon using properties. I think your going to have to owner draw the title bar of the form. I DON'T have any example code, nor do I know of any. But, in theory, it's possible to do. Look into overriding WndProc and handling the WM_NCPAINT message.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What if form is not resizable?
Sumit Domyan
|
|
|
|
|
The only ones that support no icon in the upper left corner are the ToolWindows and None borders.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you just don't want to see an icon, the simplest way is to just create a transparent 16x16 icon file and select that for the form's icon. Of course the title will still be offset the same, and the drop down menu will appear if the user clicks in the space.
If you want to get rid of all those, you'll have to custom draw the title area. But if you just want a no icon appearance, a transparent icon is far easier.
Robert
|
|
|
|
|
Why does this sound like homework?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Because as a general rule, the only posters that use numbered points are those that are SO lazy that they just copy and paste their entire assignment
|
|
|
|
|
Additional examples in Visual Basic for Report Sharp-Shooter have been created! They demonstrate the functionalities of the most flexible report generator available on the market. These examples will really help you to take a closer look at Report Sharp-Shooter, to get to know and comprehend entirely the capabilities and properties of this product. They may become necessary if you want to scrutinize the Report Sharp-Shooter when creating the applications employing Visual Basic.
Don't miss a chance to have a look at it!
|
|
|
|
|
Hit on the link for advertising, you'll get a better response I promise.
cue the onslaught.
|
|
|
|
|
Yes, click on the Advertising link! You'll avoid being hit with a flamethrower.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Congratulations, Maria. You just alienated your target audience. I suggest you pay for some advertising on this site, otherwise, I guarentee that the majority of people who read this will assume that you're
a/ cheap
b/ dishonest
c/ too poor to advertise and therefore unlikely to be around in 6 months time.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian,
I don't really understand your reaction. It is not an advertisment, it is only a news.
Thanks.
|
|
|
|
|
Maria Bezsonova wrote:
I don't really understand your reaction
Maybe it would be wise to read up on the terms "net-iquette" and "acceptable use for programming forums"
|
|
|
|
|
It's a news item that brings attention to your product, aka: advertisement.
If this was a product or site update bulletin, you would be much better served putting it up on your own site, in your own forums or emailing your customers directly.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You stupid cow. I'm sure you don't understand. That says more about how clueless you and your company are than anything that went before it.
|
|
|
|
|
I want to display the content of a word document in a text box when the filename is highlighted on a listbox.
i used the following code to do it:
Dim app As Word.Application
app = New Word.ApplicationClass()
Dim nullobj As Object
nullobj = System.Reflection.Missing.Value
Dim strFileDisplay As Object
Dim doc As Word.Document
doc = app.Documents.Open(lstResult.SelectedItem, nullobj, True, nullobj, nullobj, nullobj, nullobj, nullobj, nullobj, nullobj, nullobj, nullobj)
doc.ActiveWindow.Selection.WholeStory()
doc.ActiveWindow.Selection.Copy()
doc.ActiveWindow.Close()
The target is accomplished completely.
The 2nd target is when u double click the filename(.doc), the file shd be opened in MS Word.
This is also acheived.
But the problem is when it is run on client machine, it gives the following problem:
when u highlight a filename on the listbox;
"u get the message “file is in use by another application or user, (C:\Documents and setting\...\normal.dot)”. Then it opens a box to save the file and launches an instance of MS Word.
If you double click on the file you can eventually open it, but Word opens a dialog box that says “changes have been made that affect the global template, Normal. Do you want to save those changes?”. "
What needs to be done to fix this?
Alto
|
|
|
|
|
I am having a slight prob I am having a hard time finding out how to use an object and a select statement to get more then one value from a couple of tables I know the select statement I just need to know how to get it into my object.... Any clues maybe a for each statement I am not sure but a basic answer would be cool.
|
|
|
|
|
You'll have to be more specific. Your question is very vague. What object? What exectly are your trying to do? And what do you mean by "get it into my object"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|