Support Board
Date/Time: Fri, 23 May 2025 22:02:41 +0000
Post From: Code help, using a string instead of a constant
[2023-08-27 18:26:09] |
ondafringe - Posts: 322 |
Then explain so we can all learn something. If char* Formula creates a pointer to a memory address holding char-type data, then if sc.Input[InputIndex].GetString(); returns something like "&charvar" I can see how that would be valid, otherwise... And to reference the value a pointer is pointing to, or pass that value as an argument like double FormulaOutput = sc.EvaluateGivenAlertConditionFormulaAsDouble(BarIndex, ParseAndSetFormula, Formula); don't you also have to preface it like so? *Formula
Because Formula
would only return the memory address the pointer is pointing to. Date Time Of Last Edit: 2023-08-27 20:07:40
|