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

    [Solved]Reading from DBF file and assigning value to checkbox

    Hi! Thanks for your input! The problem with the naming is: I have many products (hundreds) that need some checks (16 items to check if the product is OK). And the 16 items can vary between each product. It could be that item 01 can be used to check if product A has the correct outer diameter...
  2. AnotherNovice1

    [Solved]Reading from DBF file and assigning value to checkbox

    Hello everyone, Is it possible to have a DBF file with some values (e.g. field01...field16 with bool values) and assign that value (and enabling the checkbox) to a checkbox with similar naming? The code for the loop doesn't seem to work, the values aren't set, the checboxes are disabled. My...
  3. AnotherNovice1

    Broken Form in Visual FoxPro Editor 2nd round

    thread184-1810436 I have no idea if this is the correct linking to the old thread, BUT: I am back with the same problem. And while creating the post I experimented with a few ideas (like all the stuff in the old post), but the sly old fox did the following: The project couldn't be built...
  4. AnotherNovice1

    Broken Form in Visual FoxPro Editor

    Hi Chris and any future reader! I solved it. I opened the form individually and resetted the associated header to each column. Then I saved that form and opened it in my project. The paths were correctly set, but (to me unknown reasons) it seemed to overwrite the correctly displayed path with...
  5. AnotherNovice1

    Broken Form in Visual FoxPro Editor

    Hi Chris, sadly, no, I don't move files around there. I only fix minor bugs in that project and don't create any new forms or objects in it. I looked into the various properties and the baseclass.prg path is correct. I can open that form individually, but not inside the project itself. But I...
  6. AnotherNovice1

    Broken Form in Visual FoxPro Editor

    Hi Chris, I only edit the SCX file. It's acting pretty weird now... I have a folder structure like this: ..\<project>\Maske\form.scx If I copy my baseclass files into the folder "Maske", I can open that form now. But I cannot open that form when I add it to my project. Maybe the _header class...
  7. AnotherNovice1

    Broken Form in Visual FoxPro Editor

    Yes Chris, Edit: I inserted the path+file+file extension into it. But it says it's not a table. What do you mean with that? Which column is that? Should I insert the path + class somewhere else?
  8. AnotherNovice1

    Broken Form in Visual FoxPro Editor

    Thanks for the fast reply Chris! Well I edited it for the correct path, but sadly it doesn't do the job. BUT: I found a backup of that form and can open it. But here comes the 'fun' part. I can open it normally in that folder. But not in the project if I add it to the project. I replaced the...
  9. AnotherNovice1

    Broken Form in Visual FoxPro Editor

    Hi everyone, thanks for your tips. I was unexpectedly away from work, due to health reasons, I'm sorry for not looking into the forum :( I will look into it and update this reply with the findings. UPDATE: Looked into the file, the fields are containing the following: class is "_header"...
  10. AnotherNovice1

    Broken Form in Visual FoxPro Editor

    Hello everyone, I have another (maybe dumb) question for you... I have a project where I can open every *.SCX / *.SCT file and edit the forms... Except for one. There it throws an error: "Error loading file - record number 18. _header1 <or one of its members >. Parent: Class definition _HEADER...
  11. AnotherNovice1

    Accessing DBF files - INSERT INTO question

    Ok...Seriously... I dropped nearly all hope... Long story short: your example didn't work on my machine. BUT then I remembered that I have another path to my testing directoy than on my workstation. And guess what: Somehow the OleDbAdapter can connect to that file, but it cannot insert data...
  12. AnotherNovice1

    Accessing DBF files - INSERT INTO question

    OK somehow I cannot edit my posts... It just shows "Post edited"... In my post this morning, 11 Feb 21 06:48 is a working link. Does anyone know if I have to give another parameter for allowing writing on that DBF file? Maybe I have to explicitly state it.
  13. AnotherNovice1

    Accessing DBF files - INSERT INTO question

    Well - I got some good and some bad news. I got my CDX file, but our program in production runs without an FPT file. I attached a copy of my dbf file. It has no entries so far. There is also no FPT file created. @Chris Miller But how can I switch the encoding? The OleDb adapter should handle...
  14. AnotherNovice1

    Accessing DBF files - INSERT INTO question

    So this could be the reason why I get these errors, right?
  15. AnotherNovice1

    Accessing DBF files - INSERT INTO question

    Well I indeed use only the DBF files and have no DBC file. I guess as far as I read it as a kind of index file of all the other DBFs. @Chris Miller Funny enough your sample code works. I guess something must be really broken on my tables... Edit: I also set the x86 building in my project. Edit...
  16. AnotherNovice1

    Accessing DBF files - INSERT INTO question

    Thanks for all the replies! @GriffMG I only write the parameters with @<value> out of habit from working with postgreSQL and it improves the readability for me. I only inserted it into my code, because it was kind of a last straw. new OleDbCommand("set null off", conn).ExecuteNonQuery(); It...
  17. AnotherNovice1

    Accessing DBF files - INSERT INTO question

    Hello there, I'm developing an App, to replace some of our FoxPro based systems, due to changing requirements and spaghetti code from my predecessor. I didn't see an DBF related Forum in here, so it's my best guess to post it here. What I want to do: Inserting records into a DBF table. (plain...

Part and Inventory Search

Back
Top