Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / February 2007



Tip: Looking for answers? Try searching our database.

VB vs VBscript type diferences

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
everymn@yahoo.com - 22 Feb 2007 02:25 GMT
Hi,

I'm trying to narrow down whether we have a problem in our ODBC
drivers.  One test script that checks field type is returning
different values between VB6 and VBscript.  Does anyone know whether
this behavior is common?  Is the does it gauge the difference between
var, and longVar based on defined size?  The seems likely to me
because the defined sizes of these fields are also different between
the two environments.

Thank You

adLongVarChar in VB6 is becoming adVarChar in VBS
adLongVarBinary in VB6 is becoming adVarBinary in VBS
Ralph - 22 Feb 2007 12:46 GMT
> Hi,
>
[quoted text clipped - 10 lines]
> adLongVarChar in VB6 is becoming adVarChar in VBS
> adLongVarBinary in VB6 is becoming adVarBinary in VBS

The short answer is that these defined data types don't exist in either
language. They are only a property of the data access library being used and
the provider's best guess from what the engine is telling it.

Need to know more about the specifics. It might help to appreciate that VB
and VBS are totally separate languages with separate VMs.

hth
-ralph
Ralph - 22 Feb 2007 14:23 GMT
ie, Look not in the bowels of the languages, but in the versions of ADO and
Providers you are using.

Also, check the actual 'value' against whatever 'const define mapping' is in
use in the environment you are testing. It is just possible that adVarChar
does equal adLongVarChar.

-ralph
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.