Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Mike Lewis

    A way to make all ReadOnly

    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
  2. Mike Lewis

    A way to make all ReadOnly

    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
  3. Mike Lewis

    VFP Report : Dynamics

    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
  4. Mike Lewis

    Combobox populated with data from a table

    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...
  5. Mike Lewis

    Some issues with scroll bars in a form

    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
  6. Mike Lewis

    VFP to doesn't launch Ms Word's mailmerge

    Thanks for that, Tamar. Mike
  7. Mike Lewis

    VFP to doesn't launch Ms Word's mailmerge

    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...
  8. Mike Lewis

    Automatic date completion

    Not a direct answer to your question, but you might enjoying reading this article from Tamar: Easier Date Entry Mike
  9. Mike Lewis

    Update data in a Cursor

    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...
  10. Mike Lewis

    Update data in a Cursor

    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...
  11. Mike Lewis

    Determine owner of private data sessions

    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...
  12. Mike Lewis

    long vs short filenames

    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...
  13. Mike Lewis

    Send E-Mail

    You'll have to give us more information. In particular, what tool or component are you using for this job? Mike
  14. Mike Lewis

    Anyone here got any experience of Grid.JS (a sortable Javascript grid)

    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...
  15. Mike Lewis

    Plotting position of text in an image in visual foxpro

    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...
  16. Mike Lewis

    Naming Convention of Object

    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...
  17. Mike Lewis

    FGETS() after reading a file line, is inserting a blank character after each valid character.

    I think you only need STRCONV(), passing 6 as the second parameter. Mike
  18. Mike Lewis

    TRY/CATCH routine: Is FINALLY is mandatory in version before 9.0?

    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...
  19. Mike Lewis

    TRY/CATCH routine: Is FINALLY is mandatory in version before 9.0?

    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
  20. Mike Lewis

    TRY/CATCH routine: Is FINALLY is mandatory in version before 9.0?

    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...

Part and Inventory Search

Back
Top