ArrayArrayArray BrainModular BrainModular Users Forum 2013-07-02T01:19:02+02:00 https://brainmodular.org/forums/app.php/feed/topic/3930 2013-07-02T01:19:02+02:00 2013-07-02T01:19:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=3930&p=27058#p27058 <![CDATA[[Scripting] HollyHock 1.01.007d]]>
I finally got to verify and now back on track, much appreciated!

-S

Statistics: Posted by sephult — 02 Jul 2013, 01:19


]]>
2013-06-30T20:40:35+02:00 2013-06-30T20:40:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=3930&p=27055#p27055 <![CDATA[[Scripting] HollyHock 1.01.007d]]>
This example works:

CODE:

begin                  dataread &#58;= 'Empty';                                       SetStringValue&#40;output,dataread&#41;;end;

Statistics: Posted by bsork — 30 Jun 2013, 20:40


]]>
2013-06-29T15:05:00+02:00 2013-06-29T15:05:00+02:00 https://brainmodular.org/forums/viewtopic.php?t=3930&p=27050#p27050 <![CDATA[[Scripting] HollyHock 1.01.007d]]>
Started working with learning the scripting interface as I am having other issues with HollyHock that is preventing me from moving further.
I was curious if the scripts were working properly in HollyHock (Noticed Wiki Disclaimer) or if I was not doing something right in the following basic script:

Summary: Creating an output to feed a text field, set a string and the output to 'Empty'

--------------------------------------------------------------------------------------------------------------------------------------------
//////////////////////////////////////////////////////
// Script example
//
//////////////////////////////////////////////////////

//////////////////////////////////////////////////////
// Paramters declaration
//////////////////////////////////////////////////////

var output: Tparameter;

var dataread: String;

//////////////////////////////////////////////////////
// initialisation procedure
//////////////////////////////////////////////////////
procedure init;
begin

output := CreateParam('output',ptTextField );
SetIsInput(output,false);

end;

// Global Variables

//////////////////////////////////////////////////////
// Main Loop procedure
//////////////////////////////////////////////////////
Procedure Process;
begin

SetStringValue(dataread, 'Empty');
setvalue(output,dataread);

end;
----------------------------------------------------------------------------------------------------------


I then tie a text field to the output, however I cannot get the output of the script to push 'Empty' to the text field.

Any advice?

-S

Statistics: Posted by sephult — 29 Jun 2013, 15:05


]]>
BrainModular BrainModular Users Forum 2013-07-02T01:19:02+02:00 https://brainmodular.org/forums/app.php/feed/topic/3930 2013-07-02T01:19:02+02:00 2013-07-02T01:19:02+02:00 https://brainmodular.org/forums/viewtopic.php?t=3930&p=27058#p27058 <![CDATA[[Scripting] HollyHock 1.01.007d]]>
I finally got to verify and now back on track, much appreciated!

-S

Statistics: Posted by sephult — 02 Jul 2013, 01:19


]]>
2013-06-30T20:40:35+02:00 2013-06-30T20:40:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=3930&p=27055#p27055 <![CDATA[[Scripting] HollyHock 1.01.007d]]>
This example works:

CODE:

begin                  dataread &#58;= 'Empty';                                       SetStringValue&#40;output,dataread&#41;;end;

Statistics: Posted by bsork — 30 Jun 2013, 20:40


]]>
2013-06-29T15:05:00+02:00 2013-06-29T15:05:00+02:00 https://brainmodular.org/forums/viewtopic.php?t=3930&p=27050#p27050 <![CDATA[[Scripting] HollyHock 1.01.007d]]>
Started working with learning the scripting interface as I am having other issues with HollyHock that is preventing me from moving further.
I was curious if the scripts were working properly in HollyHock (Noticed Wiki Disclaimer) or if I was not doing something right in the following basic script:

Summary: Creating an output to feed a text field, set a string and the output to 'Empty'

--------------------------------------------------------------------------------------------------------------------------------------------
//////////////////////////////////////////////////////
// Script example
//
//////////////////////////////////////////////////////

//////////////////////////////////////////////////////
// Paramters declaration
//////////////////////////////////////////////////////

var output: Tparameter;

var dataread: String;

//////////////////////////////////////////////////////
// initialisation procedure
//////////////////////////////////////////////////////
procedure init;
begin

output := CreateParam('output',ptTextField );
SetIsInput(output,false);

end;

// Global Variables

//////////////////////////////////////////////////////
// Main Loop procedure
//////////////////////////////////////////////////////
Procedure Process;
begin

SetStringValue(dataread, 'Empty');
setvalue(output,dataread);

end;
----------------------------------------------------------------------------------------------------------


I then tie a text field to the output, however I cannot get the output of the script to push 'Empty' to the text field.

Any advice?

-S

Statistics: Posted by sephult — 29 Jun 2013, 15:05


]]>