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

    Binary dBase memo fields

    Late breaking news. I found the problem. The TBlobField defaults to Transliterate = True. I set it to False and it allowed the nulls to be written with no problem. Of course, you would think that a Blob field would default to this!! Thanks to everyone who helped with this issue, cvgalante...
  2. cvgalante

    Binary dBase memo fields

    If anyone is still watching this thread, I think the problem is nulls in the binary memo field (which have to be there - the original application is using the memo field as a very large array of structured records). I have used a TBlobField to SaveToFile the binary data and it is formatted...
  3. cvgalante

    Binary dBase memo fields

    Well, that's encouraging - sort of. :-) I really appreciate all your help. I still can't help but wonder if something is broken on the dBase side (Paradox stuff always seems to work better in Delphi), but if I learn anything new I'll send it along. cvgalante
  4. cvgalante

    Binary dBase memo fields

    Well, DUH! I was trying to typecast it by suffixing it with .ASBLOB which, of course, did not work. It does compile but the process still trashes the memo contents. Here is the procedure at this point: procedure TForm1.ChangeStatusBufClick(Sender: TObject); var buf : array[1..100000] of...
  5. cvgalante

    Binary dBase memo fields

    Thanks, but I have been through this and a dozen other variations. This doesn't compile and gives the message: Incompatible types: 'TBlobField' and 'TField' Some code I can get to compile but it doesn't write the data back to the memo field properly - at least the original application no...
  6. cvgalante

    Binary dBase memo fields

    Good question. I have changed it so many times and I cannot get a clean compile anyway. Here is one example. Assume a TTable named dbf1 pointed to a dBase file with a memo field named TREEDATA. tsread, tswrite : tblobstream; begin with dbf1 do begin open...
  7. cvgalante

    Binary dBase memo fields

    I've been trying to modify a binary memo field in a dBase file using a variety of methods and can't get any to work. I was trying the BlobStream methods as in the Help examples and they don't run as written. I get errors when I try to create a TBlobStream variable using the Ttable...
  8. cvgalante

    Lost transaction log

    Well, I didn't because it's really ugly and I wouldn't recommend it. Plus, I did a lot of things and not all of them were relevant, but here are the things I think actually led to the solution: When I started working on the problem, someone had managed to remove the database entry from the...
  9. cvgalante

    Lost transaction log

    Thanks - actually, the files were not detached properly, so the single file attach still would not work. I ended up doing some fairly bizarre things to get this back up, but was finally able to. CVG
  10. cvgalante

    Lost transaction log

    Is there any way to recover an MSSQL 2000 database from just the .MDF file when the .LDF file has been irretrievably lost? Backups are not available. Don't even ask the questions I asked when confronted with this - you won't like the answers any more than I did! %-) If not, there is a 3...
  11. cvgalante

    Import delimited files

    Everyone, Thanks, I found that info about defining ASCII Ttables. Boy, it sure isn't documented anywhere. Thanks for the help, CV
  12. cvgalante

    Import delimited files

    Hi Folks, Am I missing something or is there no straightforward way to import a delimited text file to a table (like any database product does with ease)? The documentation says the Ttable type ASCII is delimited, but I have only found ways to set it up for fixed width formats. I have used...
  13. cvgalante

    Need to put more than 255 caracthers in a string

    Check to make sure you don't have compiler directive {$H-} which turns s : string; into a 255 character string declaration. Default is {$H+} which makes it an AnsiString as McMerfy shows above.
  14. cvgalante

    Treating strings.

    If you use stringlists, the process is automatic and the array is built for you: ts := TstringList.Create; ts.CommaText := '0;400;100,100;D;400,400;D;400'; // or ts.CommaText := YourStringVariable Now you have: ts[0] is '0;400;100' ts[1] is '100;D;400' . . . etc.
  15. cvgalante

    Drive mapping at runtime

    Opp, Thanks for the link. I will try this out. Actually, I don't need permanent drive mappings, just temporary while my process runs. The ability to supply a network user id and password to log into the remote server to begin with is what is crucial to me. Again, thanks for the quick...
  16. cvgalante

    Drive mapping at runtime

    Does anyone know how to map a drive from within a Delphi program? For instance, map F: to \\server\sharename\folder1. One reason I want to do this is to test my program's ability to see the other machines on a network before I try database operations in a changing or uncertain environment. I...
  17. cvgalante

    is it delphi doing this

    I thought I heard mention of Terminal Services. Is everyone logging in as the same user? If it is possible to log in using different user names and use the MyDocuments folder as the startup folder (or other user-dependent folder), it might help. If not using Terminal Services, try creating an...
  18. cvgalante

    Faster without GUI ?

    Jens, Just a thought...do you have any datasource objects on the empty form? I think Delphi would believe it has to do the work of creating links to update visual elements (even though there are none) in that case. Also, have you used Tqueries or just Tdatabases? There is less overhead with...

Part and Inventory Search

Back
Top