Player4 Posted September 6, 2022 Share Posted September 6, 2022 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 More sharing options...
CmP Posted September 6, 2022 Share Posted September 6, 2022 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 More sharing options...
Player4 Posted September 21, 2022 Author Share Posted September 21, 2022 Thank you! I solved it thanks to you! Link to comment Share on other sites More sharing options...
Question
Player4
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
Archived
This topic is now archived and is closed to further replies.