Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem when running an exe
Message
From
26/02/2016 13:29:16
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01632118
Message ID:
01632152
Views:
48
>>>The following code works fine when running the exe within VFP but does not work when running the exe from explorer - I think it is a problem with the mline function - the records are created in superdata but there is no data in ggg and consequently no data in linexdata
>>>
>>>Any ideas?
>>>
>>>SELECT super
>>>STORE 0 TO nn
>>>SCAN
>>>
>>>store memlines(indydata) to totlines
>>>
>>>for xx=1 to totlines
>>>store mline(indydata,xx) to ggg
>>>SELECT superdata
>>>APPEND blank
>>>replace linexdata WITH ggg
>>>SELECT super
>>>next
>>>endscan
>>
>>
>>I just want to point out that that code is not a good idea. If any of your memo fields are particularly large, it will be horribly slow. At a minimum, you should use the 3rd parameter of _MLINE for MLINE(), which picks up where you left off. However, you can probably do this much faster with ALINES().
>>
>>Tamar
>
>Tamar thanks but it does not explain why the exe does not run correctly from explorer

No, but I thought perhaps a better approach might incidentally solve the problem.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform