Hi
I don't succeed to achieve my goal
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I read a textfile and make some processing and get data in listtime when i check the listtime in the scope of the sub where i do processing ,listtime has N element but after exit the sub it has no element ?
![8220-im1.png][1]
here the watch of the debugger
Thanks
Hi
I don't succeed to achieve my goal
You need to use await
for your async method. eg. await read-file()
You also need to change MainPage_Loading()
to an async method. If you don't use await
for read-file()
, you will hit the end of MainPage_Loading()
before read-file()
returns its result.
Sorry because I cannot post "readfile" here so please use your method name to replace it.
Hi, if you use await the execution of method ends before all instructions are executed. Try following code and check debug result in "Immediate Window". Use NotifyPropertyChanged to inform about the end of method.
Another approach is to use LoadList as function: