Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd array behavior
Message
From
01/10/2013 13:49:50
 
 
To
01/10/2013 13:12:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01584589
Message ID:
01584597
Views:
38
>>Has anyone seen the following?
>>
>>Both test and production servers are running VFP9 sp1
>>
>>
>>On Test Server:
>>
>>dime xxx[1]
>>xxx[1] = {}
>>Select somedate from somefile where someconditions into array xxx
>>
>>?xxx[1] - returns Subscript is out of range error
>>?alen(xxx) returns 0
>>
>>However, on the Production Server we get
>>
>>?xxx[1] = / /
>>?alen(xxx) returns 1
>>
>>What might be causing this?
>
>Always check that _tally>0 before making assumptions about the returned data.

Unfortunately, this is inherited code
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Reply
Map
View

Click here to load this message in the networking platform