Uncaught type err:can't set properties of undefined

I got an error "uncaught type err:cannot set properties of undefined(setting ‘text’)line 105 column 21.is it I didn’t check variable for undefined,or a cors err?any pointers is appreciated,tst

@tst - there is no possibility of helping unless you provide more information.

Whatever variable is to the left of the = sign on line 195 near column 21 hasn’t been declared.

You should have a VAR txtSomething = some where before or on line 195.

After I corrected an error,trying voltbuilder,norton moved nsb as 9141 to quarantine.seemingly,norton have released a new version,and up my security detection.i restored as from quarantine.norton moved as to quarantine again,now , another virus detected at as…tmp.i can’t do anything now,advice?


After I managed to install,halfway,an error msg keeps popping up,for 10+ times,see attached .

.after the installation,msg says:unable to execute file:…as.exe create process failed:code 2.the system cannot find the file specified.

Thanks,@ppetree

AppStudio 9.1.4 was released to add support for Snapdragon processors. If you’re on Intel, try 9.1.3:

https://download.appstudio.dev.us-east-1.linodeobjects.com/AppStudio-v9.1.3.exe

Nsb as 913 is fine now.now focusing on my err …thanks,tst

My app runs almost fine, except for uncaught type err.is there anyway to not set err checking too strict,so that uncaught type err don’t appear…my previous as9 app runs fine…best rdgs,tst.my hacker periodically changes my code,I have no way to stop him .

You will need to figure out the cause of the uncaught type error. (You probably do not want to us2 a Try…Catch block)

We can’t help you with your hacker.

Dim spreview
spreview = 0
kh = 0
kh = localStorage.getItem("keyspreview") 'creates localStorage.key with defined value  
spreview = kh
'if off
If kh = 0 Then
  'on it
 spreview = 1 
 Button12.value = "prev off.."
ElseIf kh = 1 Then
  'off it
 spreview = 0 
 Button12.value = "prev on.."
Else 
  'on it
 spreview = 1 
 Button12.value = "prev off.."

End If

  If form1btnhere = 1 Then
     form1btnhere = 0
     WaitCursor  False
  End If
   
  If quote_index = 1 Then
    quote0_0 = ""  
  End If  
End Function```

This code seems problematic 
Dim kl
kl =1

@tst - this isn’t really helpful.

You posted some code, but no clues as to what you are asking people to look for, other than this:

Dim kl
kl =1

Why is this code problematic?

1 Like

I thought the proper way is:dim k =1 k=1.another problem is ,I have a= array[1],should it be a = array(1) ?

Is there something like :rename ;arraya[2#] to arraya(2#).for eg :arraya[12]. To arraya(12);in nsb appstudio?

@tst - I have no idea what you are trying to do or what your question is.