Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Into ..name -- data Type Mismatch
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01121786
Message ID:
01121801
Views:
9
Hi Gerard,

You would get this error if you populate one or more properties of 'obj' object with data type that is different from the type of field with the same name. While INSERT FROM MANE will chocke on it with 'Data Type Mismatch' error, the GATHER NAME will implicitly perform data conversion and ignore any of properties with errors during such conversion.

>I have code as follows:
>
>
>Sele ALI
>SCATTER MEMO NAME Thisform.Obj BLANK
>..... do some code to populate fields
>Insert into ALI FROM NAME THISFORM.obj
>
>
>This gives a Data Type Mismatch
>
>However , if I
>
>
>Sele ALI
>Appe Blank
>Gather Name Thisform.Obj
>
>
>.... this workd fine and populate fields ok
>
>Any ideas on why I am getting the Mismatch, as I would have thought that the Scatter Blank would initialise all fields
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform