From the VFP Help:
ReadOnly Property
For combo box controls, the ReadOnly property cannot be set to true (.T.) when the Style property is set to 2 – Drop-down List.
As EinTerraner says, you can always drop down the list portion of the control, but you cannot necesserily edit the contents.
Mike
Hmmm. I don't think a button can be read-only. Or, more exactly, it doesn't have a ReadOnly property. After all, buttons can't be edited in the same way as a checkbox or textbox.
Perhaps you are referring to making the button enabled / disabled?
Mike
You say "columns are not updated for the configured conditions". But you neglect to tell us what those configured conditions are. That makes it a little tricky for us to suggest a solution.
Mike
Try setting the combo's ListIndex to 0. I think that will do what you want.
Having said that, I would take a different approach. I would add a checkbox to the form, to let the user choose between filtering on a name or leaving the filter blank. The caption of the checkbox could be something...
Can you open the form in the Form Designer? If so, right-click on each of the following properties in turn, and choose "Rest to Default" : Top, Left, Height and Width.
Mike
How about bypassing the VFP Mailmerge class and the ODBC driver? In other words, see what happens when you do this:
loWord = CREATEOBJECT("word.applicaiton")
This will not give you the solution, but it will tell you whether it is Word (or more precisely the Word Automation server) which is at...
You're quite right, Doug. When you SELECT ... INTO CURSOR <cursor name>, the existing cursor is destroyed before the new one is created. When that happens, the grid's "knowledge" of its columns is also destroyed, which means the grid can't display the new data.
The solution is to set the...
Well, you can set a filter on the cursor in the normal way:
SET FILTER TO <your filter condition here> IN curReservas
and then refresh the grid.
But it might be more efficient to regenerate the cursor. In other words, do the SELECT again, with the relevant data in the WHERE clause. And then...
You can loop through all the open forms, testing each one's DataSessionID against the required value. Something like this:
lnID = 2 && this is the ID you are looking for
FOR EACH loForm IN _screen.Forms
IF loForm.DataSessionID = lnID
* this is the one you want
ENDIF
ENDFOR
Keep in...
Welcome to the forum. We deal with all versions of FoxPro here, so you are in the right place.
The reason that you are seeing the short filename is that FoxPro 2.6 was written to run under MS-DOS and Windows 3.x Those versions did not support long filenames, so FoxPro 2.6 is unable to show...
Just to wind this up ....
I've pretty well finished the project for which I needed a sortable grid. I adopted Tom Slayton's suggestion - DataTables.js - and am very pleased with it. I'm only using a few of its features (mainly global searching, clickable column headers and pagination). As far...
As well as Tom's suggestion, there are several on-line OCR tools available. You upload the image (TIFF in this case), and the tool extracts the text, which you then download. At least, that's what they claim. I have no personal experience of these.
I quick Google search threw up these...
The normal way to deal with invalid characters in the names of object, fields, etc. would be with a simple STRTRAN(). To demonstrate:
lcBad = "loObj2.fields.comments_upload-1_file"
lcGood = STRTRAN(lcBad, "-", "_")
This will change all hyphens to underscores, which would be valid.
That said...
OK, I need to clarify what I wrote before:
If you have a TRY/ENDTRY without a CATCH, an "Unstructured error" occurs, regardless of whether there is an actual error..
If you have an empty CATCH, any error is ignored. (This is the case with my packing routine.)
This doesn't explain the...
Chris, re your point about an empty CATCH. Looking back over my PACK routine, I do have an empty CATCH in some of those cases. But, as far as I can see, it doesn't invoke the default error-handler when the CATCH is empty. (I'm not sure about that. Let me check.)
Mike
I disagree with Chris re whether CATCH is mandatory. I occasionally wrap code in a TRY/ENDTRY when I don't need to handle the error if the code fails. One example would be:
TRY
USE Table1 EXCLUSIVE
PACK
USE TABLE 2 EXCLUSIVE
PACK
etc.
ENDTRY
Here, I want to pack the tables, but...
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.