Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect state of memofield and textbox
Message
From
15/11/2012 02:18:41
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
14/11/2012 09:10:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01557010
Message ID:
01557250
Views:
80
>>>Why are you bothering with filetostr()? If the data is in a memo field, then just Scatter memvar memo and deal with it just like any other variable.
>>
>>while the technique works, I think this day and age the hint should be along the lines of
>>scatter memo name oScat
>>for maintainance ease unless it is a very low number of memo fields (think # of thumbs...)
>>and then including a "like mem1, mem2" clause for memvar...
>
>My point being that she doesn't need to mess with the FileToStr() function. I rarely do a scatter memvar unless I've got 3000+ (I exagerate) fields to insert into another table. Mostly, I pull the record I need into a temp table and work with it from there.

My point being that when you have x tables of y fields scattering to memvar is bad practice,
as there is not only the chance to trample on existing vars, but also duplicate field names...
scatter to array in FPW was a bit unwieldy, but scattering into objects just makes sense...
Previous
Reply
Map
View

Click here to load this message in the networking platform