Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd array behavior
Message
De
01/10/2013 13:50:12
 
 
À
01/10/2013 13:08:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01584589
Message ID:
01584598
Vues:
49
New symptom!

the SQL alias' the table

Select datefield from sometable a where a.idfield = variable and a.trantype = variable into array xxx


Now getting variable 'trantype' is not found

What the heck is going on here guys? Especially considering it's gone through 3 other SQL into the same table with almost the same where conditions (the trantype variable differs) with no problems.




>>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?
>
>Might there be a different strictdate setting?

Both servers have StrictDate = 1
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform