Thanks wangdog!
I dont quite understand what this line is doing ...
countCat = animalSingle[i].equals("Cat")?countCat+1:countCat+0;
Specifically, I dont understand this ....
?countCat+1:countCat+0;
Also, I'm seriously confused about the whole array/arrayList/vector/hash things. There are a...
Hello All,
I'm hoping someone can help here. I'm trying to count how many times a string occurs in an array. Here is the code I have ...
String animals[] = {"Cat", "Cat", "Dog", "Dog", "Fish"};
String animalSingle[] = {"Cat", "Dog", "Fish"};
count = 0;
for (int i = 0; i <...
hmm, I'm not sure how you are getting this to work. I keep getting flagged on the 'With .Axes(xlCategory)' line. This only way I get passed it is to remove the '(xlCategory)'.
This is what I have ..
' Create Excel object and first chart
t = 0
intI = 1
intJ = 1
Dim xlstrCount(25)
Dim xlapp
Dim wb
Dim objsheet1
Dim objChart1
Set xlapp = createobject("Excel.Application")
xlapp.Application.Visible = False
Set wb = xlapp.workbooks.add
Set...
I can get passed the line if I remove the (xlCategory) from the With .Axes. But then that results in another error "Object Doesn't supprt this property or method: 'HasTitle'
I believe a "CHART SHEET". Here's everything I have at the moment for the chart ...
Set xlapp = createobject("Excel.Application")
xlapp.Application.Visible = False
Set wb = xlapp.workbooks.add
Set objsheet1 = xlapp.Worksheets(1)
objsheet1.Name = "Data"
For Each strDate In...
I'm trying to label a chart axis with this ...
Set objAxis = xlapp.ActiveChart.Axes(xlValue, xlPrimary)
With objAxis
.HasTitle = True
.Title.Text = "Issues"
End With
And I keep getting a Unable to get the Axis property of the Chart class, Code 800A03EC.
Does anyone haev any idea what I'm...
...bit of code and will add it to the complete script later today.
Is it possible to have multiple 'Select' statements in the same script? For instance, can I "SELECT * FROM ...." in one part of the script and later send another "SELECT" statement to the same record set?
Again, thanks for your...
...is what I have at the moment
Dim sSQL
Dim connection
Dim rs
Dim cn
Dim i
Set objFSO = CreateObject("Scripting.FileSystemObject")
sSQL = "SELECT * FROM TestLog"
Set cn = CreateObject("ADODB.connection")
Set rs = CreateObject("ADODB.recordset")
sConnString="DRIVER={Microsoft Access Driver...
Hello,
I'm trying to find the best way to count elements of an array. I have any number of occurances of dates, such as mm/dd/yy and I would like to count the seperate occurances so that I can plot them on a chart.
The data I'm currently working with is;
7/6/04
7/6/04
7/6/04
7/5/04
7/5/04...
Hello,
I'm not certain which forum this would go in. So if it's wrong, I apoligize.
I'm wondering if anyone has any references to the excel formatting commands that would be used in VBA (or vbscript).
I have a script that is working and I would like to add instructions for another...
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.