assign_no_returnvalue
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| assign_no_returnvalue [2018/06/07 07:11] – created wolfgangriedmann | assign_no_returnvalue [2018/06/09 10:48] (current) – wolfgangriedmann | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Assign | + | ====== Assign |
| VO unfortunately permits to return a value from an '' | VO unfortunately permits to return a value from an '' | ||
| - | [code]Warning XS9032 This entity type cannot return a value. Return value ignored.[/code] | + | <code>Warning XS9032 This entity type cannot return a value. Return value ignored.</code> |
| 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> |
| protect _cMyVar as string | protect _cMyVar as string | ||
| | | ||
| Line 11: | Line 11: | ||
| _cMyVar := cMyVar | _cMyVar := cMyVar | ||
| | | ||
| - | return _cMyVar[/code] | + | return _cMyVar</code> |
| | | ||
| It is recommended to type the access/ | It is recommended to type the access/ | ||
| - | [code]class MyClass | + | <code visualfoxpro> |
| protect _cMyVar as string | protect _cMyVar as string | ||
| | | ||
| declare assign MyVar | declare assign MyVar | ||
| - | |||
| | | ||
| assign MyVar( cMyVar as string ) as void pascal class MyClass | assign MyVar( cMyVar as string ) as void pascal class MyClass | ||
| _cMyVar := cMyVar | _cMyVar := cMyVar | ||
| | | ||
| - | return | + | return</code> |
| In this manner the compiler will you notify when you anywhere in your code have used the return value of the '' | In this manner the compiler will you notify when you anywhere in your code have used the return value of the '' | ||
assign_no_returnvalue.1528355480.txt.gz · Last modified: 2018/06/07 07:11 by wolfgangriedmann