Hi
I'm converting a B4A project to B4J and made great progress but have come across this problem. I found one question about ".download" on the forum but there problem wasn't the same as mine. The code is
I am getting the following error on compilation
Parsing code. 0.03
Compiling code. Error
Error compiling program.
Error description: Array expected.
Occurred on line: 333
prices2.Download("http://download.finance.yahoo.com/d/quotes.csv?s=BHP.AX+RIO.AX.AX&f=sl1")
Word: (
I would be grateful for assistance
I'm converting a B4A project to B4J and made great progress but have come across this problem. I found one question about ".download" on the forum but there problem wasn't the same as mine. The code is
B4X:
Sub UpdateStockPrices
'Dim prices1, prices2 As HttpJob
Dim prices2 As HttpJob
Dim priceTable() As String
Dim cursorStock As ResultSet
Dim allStocks As String : allStocks = ""
'prices1.Initialize("Prices1", Me)
prices2.Initialize("Prices2", Me)
cursorStock = SQL1.ExecQuery("SELECT DISTINCT Stock FROM Trans01 ORDER BY Stock")
'For i = 0 To cursorStock.RowCount - 1
Do While cursorStock.NextRow
'cursorStock.Position = i
allStocks = allStocks & "+" & cursorStock.GetString("Stock")
Loop
prices2.Download("http://download.finance.yahoo.com/d/quotes.csv?s=BHP.AX+RIO.AX.AX&f=sl1")
'prices2.Download("http://download.finance.yahoo.com/d/quotes.csv?s=" & allStocks & "&f=spl1c1p2y")
End Sub
I am getting the following error on compilation
Parsing code. 0.03
Compiling code. Error
Error compiling program.
Error description: Array expected.
Occurred on line: 333
prices2.Download("http://download.finance.yahoo.com/d/quotes.csv?s=BHP.AX+RIO.AX.AX&f=sl1")
Word: (
I would be grateful for assistance