Jump to content


wvd_vegt

Member Since 17 Jan 2005
Offline Last Active Jul 08 2011 02:23 PM
*****

Posts I've Made

In Topic: How to use the InsertRow

03 July 2011 - 09:54 PM

Hi Boki

Please forgive me if I didn't understand it correctly ;)

You need a method and property which will:
- Move content of double-clicked row into a InsertRow.

Am I correct?


I would like to use the InsertRow to edit rows (not only for adding new ones). I just do not like inplace edit together with full row select.

So i need a method to start editing a row and the InsertRow code should be smart enough to replace the row being edited when done instead of adding it to the end of the grid.

Wim van der Vegt

In Topic: How to use the InsertRow

03 July 2011 - 01:44 PM

Hi Boki

I'll look into the code changes.

SecondClickEdit only seems works for the grid itself and only on cell level.

What I try to do is use the InsertRow as edit area when full row select is enabled. Ideally double or second clicking a row would copy the rows values into the InsertRow for editing. After editing the Selected Row should be replaced instead of adding a new one. The InsertRow should keep track of if it's editing a row or creating a new one. For this I could live with having to call a (Do)EditRow method on RowLevel.

I think this would be a nice addition in functionality.

Wim van der Vegt

In Topic: Exe Demos are uploaded

04 June 2011 - 04:16 PM

Hi Boki

Your new components are still hard to find hrough Google.

WvdV

In Topic: TNxFormulaParser?

28 March 2011 - 11:59 PM

QUOTE (Thomas Steinmaurer @ Oct 9 2010, 12:34 AM) <{POST_SNAPBACK}>
Hi!

my expression includes variable names, e.g. something like that:

ExecutionTime > 200

variable names then need to be replaced by its concrete value at run-time, so I need a way to access variables in an expression somehow. Is this possible?

Something like FieldByName or ParamByName from the Delphi database world comes to my mind.

Thanks,
Thomas


Answering a bit late but the formulaparser allows you to register your own function and variables of certain types and the parser will evaluate them for you at runtime. No need for preprocessing. Have a look at:

CODE
procedure Addobject(adres : pointer; name  : string; typ   : Ftype);


and the declaration of Ftype. For your sample, call it like:

CODE
procedure Addobject(@ExecutionTime, 'ExecutionTime', tfp_intvar);


If you add a string variable the string is evaluated too.