Mydbexpress.zip BDS2006 : First example, access to MySQL database, browse table elements There are just some slight differences, that I corrected to make the old dbexpress versions work fine with BDS2006. Username and/orpassword depends on your system Go in c:\Program Files\Borland\BDS\4.0\dbExpress\dbxdrivers.ini, verify that
Just take the libmySQL.dll from the MySQL directory to Windows directory. Using Borland dBexpress for Borland Developer Studio 2006 If you got drivers/DLL problems, please visit the site :
Of couse it doesn't end here, mode code will go into it to catch mode situations, but the hard part is over.Use and access a MySQL database with a Borland C++ Builder 6 application Results->Memo2->Lines = CacheMemo->Lines ĭocument.write('Thnx \'2ffat\' for the info.') While (CurrentLine Lines->Strings.c_str() I think code should be shared to everyone, so heres the finished and working product:
Keith RE: Searching an AnsiString in Borland C++ Builder 6 Trial Ruggie (Programmer) replace like it shows in the help file but I don't know why it doesn't work.
replace as a string modifier, when I try to use it I get the message:ĪnsiStringReplace(MyString,j,"\\\'", Flags )īut I can't find information on how to transfer any flags to the command. To approach this I changed the code to look like this: Now my problem is that I forgot that I need to replace 1 letter with 2 letters.Īnd this method only allows you to change the single letter you are dealing with, even if I try to pass MyString2 something like test it will only see t when I return it to MyString I'm not at the computer that has the code on it but I'm pretty sure I ran something like this:
I was able to get around the errors by changing the code a bit. RE: Searching an AnsiString in Borland C++ Builder 6 Trial Ruggie (Programmer) If Strings start at 1 and not 0 then wouldn't that loop start the process at the 2nd letter and not the first? I'm pretty sure I copied your example and have it entered correctly. When I seek to the part of the code that is causing the error I find:įor the first one it is if (MyString = "\'")įor the second one it is MyString = "\"" When I try to compile the result I get these errors:
While (CurrentLine Lines->Strings įor (int j = 1 j Lines->Add("document.write('" + MyString + "') ") Well I tried it out like you suggested but now I'm getting errors and I'm not quite sure how to handle them. Thanks!!! RE: Searching an AnsiString in Borland C++ Builder 6 Trial LastCyborg (Programmer) 3 Aug 03 00:32 While (CurrentLine Lines->Add(" document.write('" + Memo1->Lines->Strings + " ') ") (I will most likely take this down to just two but for now its easier for me this way)
Memo2 is in a diffrent window and CacheMemo just gets copied over. But javascript is sensitive and the html code needs to be checked for sybols and action needs to be taken before the loop copies over the information.ĬacheMemo is the one we copy the information in. The goal is to take html and strip it or transform it so it can be redrawn with javascript. Heres a copy of the code I'm working with so you get a better idea of what I'm doing. I know you can use IndexOf to search a list of strings but that doesn't help me. My problem is I can't figure out how to search for one symbol in a single string. In the loop all it does is take existing text from a memo and add stuff in front and behind. I'm trying to write a program that looks for diffrent symbols such as ' or " and halts a loop.