Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vfp's between function in .Net

Status
Not open for further replies.

nathj

Programmer
Oct 11, 2004
33
GB
I am slowly moving from VFP to .net. In foxPro you can do the following

Code:
func numbertest
parameters nNum

if between(nnum, 1, 16) then
? "number is between 1 and 16"
else 
? "number is not between 1 and 16"
endif
return
endfunc

I was just wondering what the comparitve function is in .Net, what is the equivalent of between? Is there on or do I have to do it :
ifnnum >= 1 and nnum <= 16 ...

Any help gretly appreciated.
Nathj
 
Code:
Select Case nnum
Case 1 To 16
   'Your code here
Case Else
   'Default
End Select
 
Thanks alot. thats so obvious now I know, I feel a bit daft for asking. cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top