Alexandr Okhotnikov wrote:
Can an example of effective solutions?
And why this decision is not effective?

FieldGet (fieldnum ()) - a very cumbersome
example:
1. ALIAS1-> & ( "NAME1") + = ALIAS2-> & ( "NAME2")
2. ALIAS1-> (FIELDPUT (FIELDNUM ( "NAME1"), FIELDGET (FIELDNUM (
"NAME1") + ALIAS2-> (FIELDGET (FIELDNUM ( "NAME2"))))
(easily be mistaken with brackets)

Hi,

These are more clear without & :
1) alias1->NAME1 += alias2->NAME2
2) alias1->(NAME1 := NAME1 + alias2->NAME2)
(I assumed FIELDNUM() means FIELDPOS())

Regards,
Mindaugas


P.S. homework test the speed of 1) and 2) in proposed syntax above and with macro compiler syntax in a loop FOR nI := 1 TO 10000000 and compare execution time.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to