|
|
淡定的盒饭 · ASP.NET 核心 Blazor ...· 1 月前 · |
|
|
傻傻的馒头 · STRING_SPLIT ...· 1 月前 · |
|
|
坚韧的啤酒 · 表达式和函数 - Azure Data ...· 1 月前 · |
|
|
犯傻的黄豆 · Branches API | GitLab ...· 4 周前 · |
|
|
迷茫的手术刀 · Java-“this”和“类名.this”以 ...· 2 周前 · |
|
|
重情义的铁链 · 花木兰是民族英雄,历史上却是一个悲剧人物,她 ...· 1 年前 · |
|
|
挂过科的杯子 · 植物大战僵尸2中文版狂野西部第22关攻略 ...· 1 年前 · |
|
|
玩命的小蝌蚪 · 《浙江省工程建设领域农民工工资专用账户管理实 ...· 2 年前 · |
|
|
善良的牛腩 · 十大最值得收藏的国摇专辑 - 知乎· 2 年前 · |
|
|
无邪的蚂蚁 · 保罗·皮尔斯,永远的绿军之魂 - 知乎· 2 年前 · |
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV
All Answers
I think it is a simple code issue
Just make your return results; statment at the end before the last " } " . I mean by before closing the function write your return results so you must also initailize your result variable at the start of the function and not inside any block of code.
This error pops up because the function is suppose to return string but in some branch section of your code it doesn't return anything
Let me if the solution helps.
Thanks and Regards,
Shiva RV
I'm not sure what you mean. I should move my results variable definition to ouside my if statement?
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV