Re: Organizing Constants for Easier Maintenance

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



> Function GetCallouts(ByVal sScale As String) As String
> If InStr(sScale, "Detl") > 0 Then
> GetCallouts = sScale & " Detl Callouts"
> Else
> GetCallouts = sScale & " Callouts"
> End If
> End Function
>

Oops, I looked a little closer at your code and the following seems to be
what you're looking for.

Function GetCallouts(ByVal sScale As String) As String
If InStr(sScale, "Detl") > 0 Then
GetCallouts = "Detl Callouts"
Else
GetCallouts = sScale & " Callouts"
End If
End Function


.



Relevant Pages

  • Re: split up days
    ... oops, ... > It's easy to transfer the string "year, month, day" to the parameter ... > format that meets the requirement of Date.new: ... Prev by Date: ...
    (comp.lang.ruby)
  • Re: Add methods to string objects.
    ... > You can even get closer, ... bad idea), but given that it does work, why doesn't it work with a string ... Prev by Date: ...
    (comp.lang.python)
  • Re: Fuzzy Match Logic
    ... Oops that should be: ... function StringMatch(const S1, S2: string): integer; ... Nils ... Prev by Date: ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Microsoft - please ....
    ... oops... ... > But you're right that there are good reasons to why String is sealed, ... Prev by Date: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: losing poundage
    ... Spacing is closer together, more support for each string. ... Prev by Date: ...
    (rec.sport.tennis)