Message 1 of 5
Select case = or less than in ilogic
Not applicable
12-23-2016
08:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
With the help here, I had a great result with my plates format yesterday and now I am trying to do the same with round bars but alittle bit trickier because I need to add less or equal to or greater than.
so I want it to say that if my roundbar is less than or equal to .25 then use 446-1004 but I cant get it to work.
then for the second line is >= .3125 and so on
Thanks again in advance!
iProperties.Value("Custom", "Thickness") = B_DIA oThickness = iProperties.Value("Custom", "Thickness") odrawingname = ThisDoc.FileName(False) namedxf = Left(odrawingname,3) & "\" & Mid(odrawingname, 5,8) ofilename = namedxf & ".DXF" iProperties.Value("Project", "Description") = "=RNDBAR,4140 HTSR, <B_DIA> DIA" iProperties.Value("Project", "Cost Center") = "=<B_L>" iProperties.Value("Summary", "Keywords") = "BP#" & ofilename 'select the case for B_DIA Select Case B_DIA Case >= 0.25 oSN = "446-1004" Case 0.3125 oSN = "446-1005" Case 0.375 oSN = "446-1006"
Case Else oSN = "446-????" End Select iProperties.Value("Project", "Stock Number") = oSN
I've got it to work when I did Case is < 1... hmmmm..but I want something if its less than..
