Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blob Field (Q) vs. Memo (binary)
Message
From
12/03/2012 09:49:24
 
 
To
10/03/2012 13:29:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01537752
Message ID:
01538040
Views:
96
>>>Q - VARBINARY (1-255)
>>>W - BLOB (VARBINARY (1-2GiB) )
>>>
>>>
>>>MartinaJ
>>>
>>
>>is not so simple.
>>
>>
>>CREATE CURSOR AA (WW W)
>>APPEND BLANK
>>REPLACE WW WITH REPLICATE(0H0,10000)
>>WW=WW
>>? VARTYPE(m.ww),VARTYPE(AA.WW),LEN(m.ww)
>>? TYPE("m.ww"),TYPE("AA.WW")
>>
>
>Fabio,
>
>Hmmm that's interesting, have you found a bug?
>try:
>
>Declare myArray(1,1)
>myArray[1.1]=REPLICATE(0H0,10000)
>ww=myArray[1,1]
>? Vartype(m.ww), Vartype(myArray[1,1]), Len(m.ww)
>? Type("m.ww"), Vartype("myArray[1,1]")
>
>
>Ciao,
>
>Koen

I think not.
If you read the documentation you see that
VarType () never like W or M or V, but Q or C only;
this because the VFP engine have W,M,V on fileds only.

Ciao
Previous
Reply
Map
View

Click here to load this message in the networking platform