Click here to Skip to main content
15,906,097 members
Home / Discussions / C#
   

C#

 
GeneralGlobal Variables ...wtf Pin
antoine@orchus-tech3-Aug-03 3:28
antoine@orchus-tech3-Aug-03 3:28 
GeneralRe: Global Variables ...wtf Pin
S O S3-Aug-03 4:47
S O S3-Aug-03 4:47 
GeneralRe: Global Variables ...wtf Pin
Marc Clifton3-Aug-03 6:30
mvaMarc Clifton3-Aug-03 6:30 
GeneralRe: Global Variables ...wtf Pin
Furty3-Aug-03 14:36
Furty3-Aug-03 14:36 
GeneralRe: Global Variables ...wtf Pin
James T. Johnson3-Aug-03 16:20
James T. Johnson3-Aug-03 16:20 
GeneralRe: Global Variables ...wtf Pin
antoine@orchus-tech4-Aug-03 16:35
antoine@orchus-tech4-Aug-03 16:35 
GeneralRe: Global Variables ...wtf Pin
LovelyXiaoXinXin3-Aug-03 16:46
LovelyXiaoXinXin3-Aug-03 16:46 
GeneralRe: Global Variables ...wtf Pin
Furty3-Aug-03 17:19
Furty3-Aug-03 17:19 
GeneralModifying window without activating Pin
S O S3-Aug-03 2:26
S O S3-Aug-03 2:26 
GeneralTopmost windows Pin
S O S3-Aug-03 1:02
S O S3-Aug-03 1:02 
GeneralRe: Topmost windows Pin
LovelyXiaoXinXin3-Aug-03 3:02
LovelyXiaoXinXin3-Aug-03 3:02 
GeneralRe: Topmost windows Pin
S O S3-Aug-03 3:25
S O S3-Aug-03 3:25 
GeneralLock problem Pin
Meysam Mahfouzi2-Aug-03 23:03
Meysam Mahfouzi2-Aug-03 23:03 
GeneralRe: Lock problem Pin
Arjan Einbu3-Aug-03 4:32
Arjan Einbu3-Aug-03 4:32 
GeneralRe: Lock problem Pin
Meysam Mahfouzi3-Aug-03 16:42
Meysam Mahfouzi3-Aug-03 16:42 
GeneralRe: Lock problem Pin
James T. Johnson3-Aug-03 16:43
James T. Johnson3-Aug-03 16:43 
GeneralRe: Lock problem Pin
Meysam Mahfouzi3-Aug-03 16:54
Meysam Mahfouzi3-Aug-03 16:54 
GeneralRe: Lock problem Pin
James T. Johnson3-Aug-03 17:01
James T. Johnson3-Aug-03 17:01 
QuestionHow do I supress the Expect: 100-continue header from being sent with a HttpWebRequest Post? Pin
Furty2-Aug-03 19:43
Furty2-Aug-03 19:43 
GeneralRead and write in .INF file Pin
Hoang Dung2-Aug-03 16:59
Hoang Dung2-Aug-03 16:59 
GeneralRe: Read and write in .INF file Pin
Furty3-Aug-03 17:41
Furty3-Aug-03 17:41 
QuestionVB6/VB.NET Case Is < 0 in c# ??? Pin
Chua Wen Ching2-Aug-03 14:49
Chua Wen Ching2-Aug-03 14:49 
Hi there. I need some help here.

I am trying to convert a sample application for learning purposes. But i am stuck to see this:

Select Case ShipPitchSM
Case Is > 0
ShipPitchSM = ShipPitchSM - Friction
If ShipPitchSM < 0 Then ShipPitchSM = 0
If ShipPitchSM > 0.03 Then ShipPitchSM = 0.03
Case Is < 0
ShipPitchSM = ShipPitchSM + Friction
If ShipPitchSM > 0 Then ShipPitchSM = 0
If ShipPitchSM < -0.03 Then ShipPitchSM = -0.03
End Select

Select Case ShipYawSM
Case Is > 0
ShipYawSM = ShipYawSM - Friction
If ShipYawSM < 0 Then ShipYawSM = 0
If ShipYawSM > 0.03 Then ShipYawSM = 0.03
Case Is < 0
ShipYawSM = ShipYawSM + Friction
If ShipYawSM > 0 Then ShipYawSM = 0
If ShipYawSM < -0.03 Then ShipYawSM = -0.03
End Select

Select Case ShipRollSM
Case Is > 0
ShipRollSM = ShipRollSM - Friction
If ShipRollSM < 0 Then ShipRollSM = 0
If ShipRollSM > 0.03 Then ShipRollSM = 0.03
Case Is < 0
ShipRollSM = ShipRollSM + Friction
If ShipRollSM > 0 Then ShipRollSM = 0
If ShipRollSM < -0.03 Then ShipRollSM = -0.03
End Select

Any help?

How do you code that in c#? I try my best to place conditions in case statements, but compile errors.

Thanks.

Regards,
Chua Wen Ching :p
AnswerRe: VB6/VB.NET Case Is &lt; 0 in c# ??? Pin
Marc Clifton2-Aug-03 15:04
mvaMarc Clifton2-Aug-03 15:04 
AnswerRe: VB6/VB.NET Case Is < 0 in c# ??? Pin
J. Dunlap2-Aug-03 15:08
J. Dunlap2-Aug-03 15:08 
GeneralRe: VB6/VB.NET Case Is &lt; 0 in c# ??? Pin
Marc Clifton2-Aug-03 15:09
mvaMarc Clifton2-Aug-03 15:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.