This is my code for parsing and replacing in my program "Tiny" parse is sent the line number in memo.
void LineInfo::parse(int n)
{
int i;
nw = 0;
const int nc=16;
char command[nc][16]={"ADD ", "PRINT ", "IF ", "ELSE...
You could be getting a biased opion from around here ;)
I am sticking my guns with the rest of the crowd, no sense in repeating whats been said.
... oh what the heck, Borland is so easy to use
For something closer to what im looking for... here is an example of something thats close to working:
String EditName;
an event for any editbox
OnEnter(Tobject *Sender)
{
EditName = ((TEdit*) Sender)->Name;
}
CopyClick()
{
EditName->CopyToClipboard();
}
Of course this wont work...
Well, while looking through one of my C++ books (Teach yourself C++ Builder in 21 days) i cam across the hint feature. When you want a long hint on the status bar, you have to add some specific things.
One of those that caught my eye was Application->OnHint = &OnHint; Where &OnHint is the...
When i mentioned that i wanted to use the ClipBoard, i meant copy, cut and paste. Those three actually use it, i was making a generalization.
Anyway, i have a month before i will be compiling a final draft and would like as much to work in this program as possible before it goes out.
If anyone...
James, i understand how to check the Focus, copy and paste, its just that i have over 2 dozen edit boxes and that number will probably tripple by the time im done with this program.
The idea is that when i go up to my Edit menu and select copy, i want the selected text from any of the numerous...
Hi, i'd like to use the ClipBoard, but what do i do when i have a large number of Edit boxes?
Am i left to check each one for Focused() or is there a function that can tell me what component is focused? Even if i were to find out which item was Focused(), how would i call the Object(in this...
thats ok m8. i created a function that took the float and made an int of the whole number and first two decimal places.
Then it puts the two into a string so i can include the decimal point.
l8r
well shoot... i forgot that even if i wanted to cut off those decimal places with my method, the float still prints the remaining 5 gazillion zeros. :(
Now i wonder if its possible to truncate a float and still use it as a float. What i mean is id have to have a truncfloat or truncf in order to...
Trying to cut down a float to the hundredth position as in cents.
Borland mentions TRUNC, Trunc, Truncate and the such. The error says undefined func and including math.h doesnt help.
Let me know if you know whats up or of you have a unique way of doing this.
hrmmmm, well, i could clip the...
Sheesh, it seems that every time i come by here for help, i answer my own questions.
The answer:
if(CheckListBox1->Checked[i] == true)
do something;
where i = a number item in the list of Strings.
The reason im so blind and missed it is because in the pointer-pop-up help box, it states...
How do i use this component?
Lets say i have multiple Items (that would be the case anyway right ;))
How do i check to see if one is Checked == true
ie:
if(CheckListBox1->Item(1) == true)
do something;
The Borland help files dont explain how to check for and individually checked...
Im looking for any components or patches for my BCB ver4.
I want to be able to view a html page that uses style sheets(CSS) with a component in borland. The current one i have only supports regular html.
Anyone have a clue where to get such things?
Uhm, ok. Well, i fixed the problem by just doing a whole new project. Dont ask me why those problems arise... but if you know, please do tell.
Now if i may, ill move away silently to avoid any ridicule due to my buggy code ;)
hi fellow programmers, a bit of help if you will. :)
I am writing a program to search and replace certain lines/strings in a memo/richedit. Here is the code:
void __fastcall TForm1::Button2Click(TObject *Sender)
{
int i;
int n=0;
int token = 0;
//this sets up some strings so i can do a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.