QRCode some times gives error message

some times when load the application contains QRCode component I got error message:
not a function QRCode1.setValue.

any suggestion is appreciated

I tried the QRCode sample and wasn’t able to make this happen. What do I need to do?

George Henne
NS BASIC Corporation
http://www.nsbasic.com

It may help if you post your file or a sample version of it. It’ll help others to look and see where the problem can be.

Form_onshow() I call ClearDutyForm
compile: some times I got that error, then recompile no error

Sub ClearDutyForm
$("#DateTimeInput1").jqxDateTimeInput(“setDate”,"")
$("#DateTimeInput2").jqxDateTimeInput(“setDate”,"")
$("#DateTimeInput1").jqxDateTimeInput({ disabled: True })
$("#DateTimeInput2").jqxDateTimeInput({ disabled: True })

‘$("#ComboBox1").jqxComboBox(“clear”)
’$("#ComboBox1").jqxComboBox(“insertAt”, “1”,1)
’$("#ComboBox1").jqxComboBox(“clearSelection”)
$("#ComboBox3").jqxComboBox(“clearSelection”)
$("#ComboBox4").jqxComboBox(“clearSelection”)
$("#ComboBox3").jqxComboBox({ disabled: True })
$("#ComboBox4").jqxComboBox({ disabled: True })
$("#CheckBox1").jqxCheckBox(“uncheck”)

QRCode1.setValue(“No Number”)
Image5.disabled=True
Image6.disabled=True

TextBox4.text="“
TextBox5.text=“0"
TextBox7.text=””

TextArea1.text=""
CheckBox1.checked = False
TextArea1.readOnly = True
TextBox5.disabled=True

TextBox3.focus()
End Sub

Can you make a small app which reproduces the problem?

There’s not enough to figure out what is going on from this information.

It is rely hard to detect, when recompile some times it append.
does it have any outer (Ex. external js link) dependency?

Yes, it uses this library:

https://github.com/soldair/node-qrcode

but it does not go outside your device to get any code.

George Henne
NS BASIC Corporation
http://www.nsbasic.com

Solved,
I’ve downloaded full jqwidgets libraries to folde in my projec and change NSBasic Project Properties “JWidgetsPath” to that folder.
error gone.

QRCode itself does not depend on jqWidgets. However, it looks like other parts of your app do. By making jqWidgets local, the files will load much faster and more predictably.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.