User Tools

Site Tools


assign_no_returnvalue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
assign_no_returnvalue [2018/06/07 09:19]
wolfgangriedmann
assign_no_returnvalue [2018/06/09 12:48] (current)
wolfgangriedmann
Line 5: Line 5:
  
 The following code, perfectly valid in VO, will throw this warning in X#: The following code, perfectly valid in VO, will throw this warning in X#:
-<​code>​class MyClass+<​code ​visualfoxpro>class MyClass
   protect _cMyVar as string   protect _cMyVar as string
   ​   ​
Line 14: Line 14:
   ​   ​
 It is recommended to type the access/​assign pairs in VO, like this sample: It is recommended to type the access/​assign pairs in VO, like this sample:
-<​code>​class MyClass+<​code ​visualfoxpro>class MyClass
   protect _cMyVar as string   protect _cMyVar as string
   ​   ​
Line 22: Line 22:
   _cMyVar := cMyVar   _cMyVar := cMyVar
   ​   ​
-  return ​_cMyVar</​code>​+  return</​code>​
 In this manner the compiler will you notify when you anywhere in your code have used the return value of the ''​assign''​ statement. (other than giving you faster and more stable code) In this manner the compiler will you notify when you anywhere in your code have used the return value of the ''​assign''​ statement. (other than giving you faster and more stable code)
  
assign_no_returnvalue.txt ยท Last modified: 2018/06/09 12:48 by wolfgangriedmann