— No Results

    Differences

    This shows you the differences between two versions of the page.

    Link to this comparison view

    Both sides previous revision Previous revision
    cppbuilder:snippets:fastscript:addmethod [2019/07/01 09:44]
    administrator [Variable passing by reference]
    cppbuilder:snippets:fastscript:addmethod [2019/07/01 09:45] (current)
    administrator [Variable passing by reference]
    Line 36: Line 36:
     void __fastcall TfrmMontageauftrag::​ComponentEventOnValidate (System::​TObject* Sender, System::​Variant &​DisplayValue,​ Vcl::​Controls::​TCaption &​ErrorText,​ bool &Error) void __fastcall TfrmMontageauftrag::​ComponentEventOnValidate (System::​TObject* Sender, System::​Variant &​DisplayValue,​ Vcl::​Controls::​TCaption &​ErrorText,​ bool &Error)
     { {
    - Log ("​ComponentEventOnValidate fired"​);​ 
    - 
    - if (Sender->​ClassType() != __classid (TMOATextEdit)) 
    - { 
    - Log ("​Sender is not TMOATextEdit"​);​ 
    - return; 
    - } 
    - 
    - //​TMOATextEdit *edit = (TMOATextEdit *) Sender; 
    - TMOAEvents *events = (TMOAEvents *) GetObjectProp (Sender, "​Events"​);​ 
    - if (events == NULL || events->​OnValidate == ""​) return; 
    - 
    - Log ("call func: "​+events->​OnValidate);​ 
    - 
      int bounds[2] = {0, 3};  int bounds[2] = {0, 3};
      Variant Result = VarArrayCreate (bounds, 1, varVariant);​  Variant Result = VarArrayCreate (bounds, 1, varVariant);​
    cppbuilder/snippets/fastscript/addmethod.txt · Last modified: 2019/07/01 09:45 by administrator