I think I'm having short circuit in my brain, so this might be stupid suggestion... But I would like to see feature illustrated by following example:
Select Case bVar1; bVar2; bVar3; iVar Case True; True; True; 1 To 10 'Do something Case False; True; True; 11 To 20 'Do something else ... etc ... Case Else 'All other combinations are handled here End Select This would be great way to simplify complicated "If Then Else" structures, anyone agree..? I could implement this same functionality with two functions (using Param for arguments and return string from functions): Select Case fCondition(bVar1, bVar2, bVar3, iVar) Case fCase(True, True, True, "1 to 10") 'Do something Case fCase(False, True, True, "11 to 20") 'Do something else ... etc ... Case Else 'All other combinations are handled here End Select But I'm afraid it would be too resource hungry. Better ideas? Jussi ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user