Posted by John Lenz on 2000-03-07
Hi. I have a couple of questions(3). 1) Is there any way to do macro substitution in Visual Basic 6.0. I know in Visual FoxPro code like str = "substitution" do &str would run the program substitution. I am looking to execute a sub with the name in a string. 2) Is there a object I could use to output text with ancii commands in the text string. What I mean by that is the old dos syntax like "Esc[0;32m text here" would change to text here in green. I only need the color commands, not the other positioning commands, because I am receiving text from the Internet with color codes in it. A function that would convert the string to rich text format might be another solution, but I don't know rich text format. 3)Finally. This question pertains to any language but I will be writing the program in C/C++ (I know C but have just started learning C++) What would be the fastest lookup table. A binary tree turns into an expensive linear search when the input is already in alphabetical order. The input is coming >from a file that will be written to when the program is finished, so if I balanced the binary tree and then had the program write in the same order it would read the next time, I could avoid the problem. I was just wondering if there was a faster and more efficient way of handling a large lookup table. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com To signoff send a mail to listserver@xxxx.xx.xx with "signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home