Using Win32 functions in Visual FoxPro Image Gallery
Console
..msdn
AllocConsole
FillConsoleOutputAttribute
FillConsoleOutputCharacter
FreeConsole
GetConsoleScreenBufferInfo
GetConsoleWindow
GetStdHandle
ReadConsole
SetConsoleCursorPosition
SetConsoleTextAttribute
SetConsoleTitle
WriteConsole
Code examples:
Creating a console window for Visual FoxPro application
SetConsoleCursorPosition
..msdn    Add comment     W32 Constants      Translate this page
The SetConsoleCursorPosition function sets the cursor position in the specified console screen buffer.
Code examples:
Creating a console window for Visual FoxPro application
Declaration:
BOOL SetConsoleCursorPosition(
  HANDLE hConsoleOutput,
  COORD dwCursorPosition
);

FoxPro declaration:
DECLARE INTEGER SetConsoleCursorPosition IN kernel32;
    INTEGER hConsoleOutput,;
    SHORT   x,;
    SHORT   y

Parameters:
hConsoleOutput
[in] Handle to a console screen buffer.

dwCursorPosition
[in] A COORD structure that specifies the new cursor position.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
Normally I would declare COORD dwCursorPosition as STRING @dwCursorPosition. It did not work this way. Fortunately SHORT, SHORT does the job.

See also: GetConsoleCursorInfo, GetConsoleScreenBufferInfo, ReadConsole, WriteConsole.
Word Index links for the SetConsoleCursorPosition :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-11-10 09:30:03
Modified: 2004-11-10 09:34:46
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.43.96)
14 sec.Function: 'GetCursorInfo'
27 sec.Function: 'GetWindowThreadProcessId'
41 sec.Function: 'DestroyWindow'
55 sec.Function: 'CryptEncrypt'
1.18 min.Function: 'HeapValidate'
1.42 min.Function: 'GetFocus'
1.65 min.Function: 'if_indextoname'
1.88 min.Function: 'ReadEventLog'
2.12 min.
Function group: 'Authorization'
2.35 min.Function: 'CreateTransaction'
Google
Advertise here!