필터 지우기
필터 지우기

error assign value in field text app designer

조회 수: 7 (최근 30일)
piero
piero 2023년 8월 25일
답변: Dinesh 2023년 9월 6일
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.

답변 (1개)

Dinesh
Dinesh 2023년 9월 6일
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.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by