Support Board
Date/Time: Wed, 27 Nov 2024 10:36:39 +0000
Post From: Code help, using a string instead of a constant
[2023-08-27 18:26:09] |
ondafringe - Posts: 286 |
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
|