Good morning, employees
I'm having trouble compiling in studio, I already reported it to intersystems support, but it did not solve the problem.
when calling a method of a class by putting $, follows an example:
set obj = ## class (% AbstractObject). $ fromJSON (data)ERROR: SearchCep.int (29) # 1011: Invalid name: '## class (% Library.AbstractObject) $ fromJSON (data)': Offset: 45 [SearchCep + 28 ^ SearchCep]
the studio compiles, and the application performs perfectly, but in the studio it presents error.
Someone has already encountered this type of error.
Following is a sample application.
W #
Set http = ## class (% Net.HttpRequest).% New ()
Set http.Server = "viacep.com.br"
From http.Get ("/ ws /" _ zip_ "/ json /")
Set data = http.HttpResponse.Data.Read ()
set obj = ## class (% AbstractObject). $ fromJSON (data)
set iter = obj. $ getIterator ()
while iter $ getNext (.key, .value) {s x = "s" _key _ "=" _ $ C (34) _value_ $ c (34) x x}
d obj.% Close ()
d http.% Close ()
k http, obj, iter, data, key, x, value
w !!!
w