Jump to content
  • 0

Number specified by variable is not assigned to gg.refineNumber


Player4

Question

As the title suggests, the number specified by the variable b

string.format("%1.11f",b) in gg.refineNumber

will erase all the numbers.

Maybe I'm not explaining it well enough.

I'll paste the syntax, please help me solve this problem.

 

for a = 1, 1 do

b = 0.1

while b < 0.91 do

gg.clearResults()

gg.setRanges(gg.REGION_OTHER)

gg.refineNumber(string.format("%1.11f",b), gg.TYPE_DOUBLE, gg.SIGN_NOT_EQUAL)

b = b + 0.1

end

end

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

refineNumber function does nothing when search results list is empty as specified in the description of the function in the documentation:

Quote

Perform a refine search for a number, with the specified parameters.

If no results in results list then do nothing.

To start new search use searchNumber function that works like described below:

Quote

Perform a search for a number, with the specified parameters.

If no results in results list then perform new search, else refine search. So if you need to perform a search, without refine, you must first call clearResults.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.