Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Incorrect Number of Dimentions Returned?
#1
I have a sql query that is pulling 6 different fields and is being captured into a string ARRAY. when I trid to get out the info I need, I tried to step through the Array with ndim and it said there were 2 dimentions but I'm able to step through all 6 fields.

Am I using this wrong somehow?
Function MGMT_Query
Code:
Copy      Help
out oConn.QueryArr(qry MGMT)
out MGMT.ndim
out MGMT.len
int dim
for _i 0 MGMT.len
,;out "%s" MGMT[0 _i]
,rep 25
,,out "%s" MGMT[dim _i]
,,;err
,,,;out dim
,,dim=dim+1
,,out dim

here's the output

Code:
Copy      Help
1
2
1
foobar
1
@foobar
2
foobar
3

4

5

6
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)