Hi,
I like write Tedit descendant who not return result as Text (AnsiString) but return result as
boolean expression for example (I > J)...
How can I do this or where can are I find this TEdit ?
Thank very much.
12 replies to this topic
#1
Posted 06 July 2010 - 12:23 AM
|
|
|
#2
Posted 06 July 2010 - 04:42 PM
Can you clarify what you're looking for here?
#3
Posted 08 July 2010 - 11:07 PM
Ok, so if I'm interpreting this correctly, you want the TEdit object to evaluate a Boolean expression typed into it and return the result?
sudo rm -rf /
#4
Posted 09 July 2010 - 12:03 AM
Yes exact.
By.
By.
#5
Posted 09 July 2010 - 12:05 AM
Is it going to be able to evaluate variables in your program, or just numeric constants?
sudo rm -rf /
#6
Posted 09 July 2010 - 12:09 AM
to evaluate variables in my program in run-time
#7
Posted 09 July 2010 - 12:12 AM
Uh...all I can say is "good luck." That may be possible in scripted languages, but you're going to have to map all of your variables onto strings in a map, find these variables in the map, evaluate them, write them back...
sudo rm -rf /
#8
Posted 09 July 2010 - 12:25 AM
Thaknkx I try it may be.
#9
Posted 09 July 2010 - 12:29 AM
#include <map> std::map<const char*, int*> int_vars; int a, b, c; int_vars["a"] = &a; int_vars["b"] = &b; int_vars["c"] = &c; // Now parse the text and match the variable names to their values
sudo rm -rf /
#10
Posted 09 July 2010 - 12:45 AM
Thank very much fo help.
#11
Posted 09 July 2010 - 12:53 AM
#12
Posted 31 July 2010 - 07:51 AM
Hi,
I write my own component and need help with this.
In component I have
__published:
__property TDefFileld Items[int Index] ={read=GetF,write=SetF}
where TDefField is:
class TDefField : public TPersistent
{
public:
AnsiString FName;
AnsiString FType; // bool byte word integer ...
Byte FSyze;
Byte FDeci;
};
TdefField * __fasctcall GetF(int Index)
{
return Items[Index];
}
void __fascall SetF(int Index,TDefField *DF)
{
Items[Index]=DF;
}
How can I write property editor for this property ?
Thank very much.
I write my own component and need help with this.
In component I have
__published:
__property TDefFileld Items[int Index] ={read=GetF,write=SetF}
where TDefField is:
class TDefField : public TPersistent
{
public:
AnsiString FName;
AnsiString FType; // bool byte word integer ...
Byte FSyze;
Byte FDeci;
};
TdefField * __fasctcall GetF(int Index)
{
return Items[Index];
}
void __fascall SetF(int Index,TDefField *DF)
{
Items[Index]=DF;
}
How can I write property editor for this property ?
Thank very much.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









