Peter Cushing wrote:
> Been using INSERT INTO xxx FROM MEMVAR for years but when you have 
> scattered to an object like say Thisform.oVars and you want to insert a 
> record, VFP7 does not give you the NAME option.  I put in a bit of code 
> to get round it, but it would be nice to just do it directly.
> 
> SELECT pohead
> FOR lnCnt = 1 TO FCOUNT()
>     lValue = EVALUATE('thisform.oVars.'+FIELD(lnCnt))
>     cTempfld = 'm.'+(FIELD(lnCnt))
>     &cTempfld = lValue
> NEXT
> 
> INSERT INTO pohead FROM MEMVAR

Peter,
I'm not following the reason for your code above.

Couldn't you do the same thing by:

SELECT pohead
SCATTER MEMVAR
INSERT INTO pohead FROM MEMVAR

?

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to