Re: question(s) about declaring variables



"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message news:%
> Because of that, those character type identifiers are needed for more
> control, not backward compatability.

No they're not, you can just use something like this:

Dim i As Long
i = 650
Debug.Print i * CLng(1000)

or declare the 1000 as a constant.

Michael


.



Relevant Pages

  • Re: Variant vs Object variable type
    ... you want to declare the most specific data type you can. ... So if you will assign a text box to the control, it would be better to use: ... Dim A As Control ... you do need to use Variant where the value may be Null. ...
    (microsoft.public.access.modulesdaovba)
  • Re: IE sequencing and cookie notification popups
    ... ' 10Apr04: accept cookies from hotmail. ... Dim SetWindowLong ' as object ... Const sDlgCaption = " Kookie Kruncher, ... ' notifications associated with that type of control. ...
    (microsoft.public.scripting.vbscript)
  • FYI: TS client script
    ... for TS on the machine running the script, ... the web control class was not found; ... Dim m_Tracing, m_TraceStream ... Function ArgString(ByVal argName, ByVal defaultValue) ...
    (microsoft.public.win2000.termserv.clients)
  • FYI: TS client script
    ... for TS on the machine running the script, ... the web control class was not found; ... Dim m_Tracing, m_TraceStream ... Function ArgString(ByVal argName, ByVal defaultValue) ...
    (microsoft.public.windows.terminal_services)
  • Re: Transfer data from one Content Control to another Word 2007 VB
    ... unfortunately cleared the grey placeholder text and turned it black and I ... Dim cc1PtMedication As ContentControl ... you can just assign the text of one control directly to the text ... macro transfers the contents of room 1 to the controls for room 3, ...
    (microsoft.public.word.vba.beginners)