LucaMs Expert Licensed User Longtime User Jun 18, 2024 #1 but there is a "small" problem: you can't call functions using CallSub (or, better, you can but you can't get results)
but there is a "small" problem: you can't call functions using CallSub (or, better, you can but you can't get results)
Cableguy Expert Licensed User Longtime User Jun 18, 2024 #2 LucaMs said: View attachment 154711 but there is a "small" problem: you can't call functions using CallSub (or, better, you can but you can't get results) Click to expand... Why not? You can do something like dim A as int = Callsub("mySub", 1,2) and then have a sub that takes those two, do some manipulating and... return something
LucaMs said: View attachment 154711 but there is a "small" problem: you can't call functions using CallSub (or, better, you can but you can't get results) Click to expand... Why not? You can do something like dim A as int = Callsub("mySub", 1,2) and then have a sub that takes those two, do some manipulating and... return something
LucaMs Expert Licensed User Longtime User Jun 18, 2024 #3 Cableguy said: Why not? You can do something like dim A as int = Callsub("mySub", 1,2) Click to expand... I remembered VERY badly (and didn't try).
Cableguy said: Why not? You can do something like dim A as int = Callsub("mySub", 1,2) Click to expand... I remembered VERY badly (and didn't try).
LucaMs Expert Licensed User Longtime User Jun 18, 2024 #4 LucaMs said: I remembered VERY badly (and didn't try). Click to expand... CallSubDelayed (2-3) can't get result.
LucaMs said: I remembered VERY badly (and didn't try). Click to expand... CallSubDelayed (2-3) can't get result.
Cableguy Expert Licensed User Longtime User Jun 18, 2024 #5 LucaMs said: CallSubDelayed (2-3) can't get result. Click to expand... because it it only called after the current code finished executing! thus "delayed" you can also use a "wait for result"
LucaMs said: CallSubDelayed (2-3) can't get result. Click to expand... because it it only called after the current code finished executing! thus "delayed" you can also use a "wait for result"