error assign value in field text app designer

4 vues (au cours des 30 derniers jours)
piero
piero le 25 Août 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.

Réponses (1)

Dinesh
Dinesh le 6 Sep 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.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by