error assign value in field text app designer

5 visualizzazioni (ultimi 30 giorni)
piero
piero il 25 Ago 2023
Risposto: Dinesh il 6 Set 2023
app.LastDateRicalcoloEditField.Value="g";
Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array
element.
Error in Predator_Equity/PortfolioTabButtonDown (line 354)
app.LastDateRicalcoloEditField.Value="g";
Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
newCallback = @(source, event)executeCallback(ams, ...
Error using matlab.ui.internal.componentframework.WebComponentController/handleClientEvent
Error while evaluating Tab ButtonDownFcn.

Risposte (1)

Dinesh
Dinesh il 6 Set 2023
Hi Piero.
The error message you're seeing, "Property assignment is not allowed when the object is empty", typically arises when you're trying to set a property on an object that hasn't been initialized or has been accidentally deleted.
To fix the issue:
  1. Ensure "LastDateRicalcoloEditField" exists and is correctly initialized.
  2. Check the scope and structure of the "app" variable within the callback.
  3. Ensure that no unintentional deletions or modifications of UI components are happening within callbacks or other parts of your code.

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by