This code (InitEvent of the Grid) ends with a ReadOnly Column:
THIS.Column1.Header1.CAPTION = ""
THIS.Column1.WIDTH = 40
THIS.Column1.CONTROLSOURCE = "TableXYZ.abc"
THIS.column1.ReadOnly = TRUE
This code doesn't end with a ReadOnly Column:
THIS.Column1.Header1.CAPTION = ""...
Into the 2th column I add a new object, wich allows me to enter numbers like a calculator (class txtnumber).
Everthing works perfect. But there is a fly in the soupe: Before I enter this column, the number is displayed 'flat' like "12345.67", but as soon I enter this column, the display of the...
In all my program files (*.prg) I include in the first line a header file e.g. #include "mkb.h"
In this header file I DEFINE program-version, database-version etc. etc. This definitions are important for the course of the program. If e.g. the field db_version in the table default.dbf is older...
In this forum until today I was always a "taker". Now I think its time to change my behavior. :)
1. Download MoleZip.dll form http://www.molestudio.com/tools/molezip/
2. Register it with RegSvr32
3. Now you can call BackupDatabase( cDatabase, lSilent )
4. BackupDatase is using another function...
I there a way to tell Beautify, not to interfere with a special word?
My problem is:
My beautify-settings changes all keywords to uppercase.
Now ShowWindow is a Vfp Keyword.
But also a (case sensitiv) function in Win32Api.
Best regards
Difference between Kernel32 and Win32API
I was trying to implement faq184-1767 (How to stop users running my app twice); but I get the error message "cannot find entry point SHOWWINDOW in DLL" when I reach the declaration.
Then I changed the decralation from
DECLARE LONG SHOWWINDOW IN Win32API...
After reading the thread about serial communication I thing the code below can help in some situation:
DECLARE INTEGER Sleep IN Win32API INTEGER
Sleep(10) && in msec
Best regards
M. Kendi
In my application I use context-sensitive help.
I put the command "THISFORM.HELPCONTEXTID = xxx" into the init-method.
Everything works perfect.
But as soon as I add an activeX object into my form, the keypress F1 does nothing. The KeyPreView property of the form is set to TRUE...
In my application I try to implement picture based "ToolTipText".
If the user moves over a specific column of the grid, a picture should appear. But the picture is always overlapped by the grid. I tried to work with ZOrder, but it doesn't helped.
Thanks in advance
MK
In my program there is a section, where the user can delete all index-tags, re-create the indexes and pack the database.
But with the command "PACK DATABASE" I get the error message, that the database is not opened exclusivly.
With the debugger I could see, that indeed the command...
Because I am anxious of losing all of my data in case of a dammaged memo-table, I tend to store my information in char-fields. I know: not very clever.
I my current application the information to be stored is very various, so a char-field solution is not possible.
So may I ask you:
1. How secure...
One of my most important forms is currupted.
If I try to modify it, I get the message:
Error loading file - record number 4.
<one of it's members>.
Parent: Class name is invalid
I opened the form as a table and all the memo-fields were empty.
But an inspection with a Hex-Editor shows, that all...
Although I call a modal form with DO FORM xxx from a menu, the main-menu does not change to his dimmed form, so the user can select the form more than once.
In all my other vfp programs the behaviour of the main-menu is as expected: dimmed, after the user has selected a modal form.
The only...
How to close the Desktop-Properties-window
If I start my application within the IDE, I use the fellowing codes to make the IDE disapear:
HIDE MENU _MSYSMENU
PUSH MENU _MSYSMENU
DEACTIVATE WINDOW "Project Manager"
and then, closing the program, I use
POP MENU _MSYSMENU...
In a table I have a character field with binary information (6 char) and a index for this field.
LOCATE finds the searched record, but SEEK returns always TRUE but stays in the first record.
The field is created as <char (binary)>.
I am using VFP6 SP5.
Within the project-manager I am able to add a binary-character field into a table.
But how I am able to do this with the SQL command CREATE TABLE? There is only the filed-type CHAR.
Thanks in advance
Hi everybody
If the vga-card has an 32-bit colour resolution, the backcolour is set to the values 192,192,192; but if the resolution is 16-bit, the default value for the background is 212,208,200.
Because I cannot know the card-settings of the customer, I need a simple way to set the...
Until yesterday GetEnv("Windir") returns "C:\WinNt"
But now "%SystemRoot%"
What is the reason for this behavior?
Thanks in advance
Mehmet
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.