Modify ↓
Opened 15 years ago
Closed 15 years ago
#1236 closed Feature Request (Rejected)
error/extended pass on in "Return function()" case.
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
Func f1() ;Switch $case.data ;Call case.A Return SetError(111,222,'aaa') ;Call case.B ;Return other.function() ;EndSwitch EndFunc Func f2() SetError(333,444) Return f1() ;returns SetError(0,0) Return SetError(@error,@extended,f1()) ;returns error/extended(333,444) Return StringInStr("string","sub",2,1,-1) ;returns error/extended(0,0) Return SetError(@error,@extended,StringInStr("string","sub",2,1,-1)) ;returns error/extended(333,444) EndFunc Local $dat $dat = f2() print('f2()') print('$dat',$dat) print('@error',@error) print('@extended',@extended) Func print($str='',$dat='',$err=@error,$ext=@extended) If Not ($dat == '') Then $str &= ' = ' & $dat ConsoleWrite($str & @CRLF) Return SetError($err,$ext) EndFunc
I know, just a other stupid idea.
Rant away ...
Attachments (0)
Change History (1)
comment:1 Changed 15 years ago by Valik
- Resolution set to Rejected
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
General rule of making feature requests: If you think asking for a feature is going to invoke a rant, don't ask for the feature.