LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Using Foxpro from within Excel

Does anyone now how to incorporate the foxpro code "=sys(3050,1,100000) into
a VB macro so that the remote machines I am using restrict
foreground/background buffer memory. The following is taken from Microsoft's
own website....

"Using the commands COPY, APPEND, DELETE, INDEX, PACK or SQL-SELECT on a
large table in Visual FoxPro causes long pauses while the data is being
manipulated. The hard drive continues processing the data, but Visual FoxPro
seems to be inactive. This happens because computers that have large amounts
of RAM and are running Windows 95 or Windows NT give Visual FoxPro a large
amount of buffered memory to use. This memory is composed of RAM and physical
hard drive space. When FoxPro writes data into memory, large temporary files
are created. When they are written to the virtual memory (the hard drive),
that memory is always slower. Using a smaller amount of foreground buffer
memory with SYS(3050) makes Visual FoxPro use only the RAM memory, which is
faster. Reducing the foreground buffer size has eliminated the long delay in
most situations. "

I am using this in excel under the following code

Set db = CreateObject("CSQuery.Foxquery")

sql = "SELECT AVG(pv_gar_hed) AS av_gar_hed "FROM '" & main_dbf & "'
WHERE Val(trim(Time)) = " & time480 & " INTO TABLE '" & total_dbf & "'"
db.sqlQuerytext = sql
db.runquery (True)
If db.ErrorMessage < "" Then
MsgBox db.ErrorMessage
'abort?
End If

Set db = Nothing

How do I incorporate the sys() function into this?

Cheers

Bob
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
query foxpro in excel 2007 steve h Excel Discussion (Misc queries) 0 May 26th 09 04:29 PM
Linking Excel to FoxPro drinese18 Excel Programming 3 June 17th 08 02:25 PM
converting a file to EXCEL from FoxPro. tgorrie Excel Programming 2 October 30th 05 04:15 PM
compatibilidad de excel con foxpro francis garcia valdes Excel Programming 0 October 9th 04 02:57 AM
Excel 2003 and FoxPro tables WKIII Excel Programming 1 June 15th 04 04:55 PM


All times are GMT +1. The time now is 08:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"