bit comparing asp or vb?

Results 1 to 2 of 2

Thread: bit comparing asp or vb?

  1. #1
    Join Date
    Dec 1969

    Default bit comparing asp or vb?

    Is bit comparing done with ASP or VB? I am changing a page with ASP and VB into a Cold Fusion page. Will bit comparing work with Cold Fusion?<BR><BR>bit comparision example:<BR><BR>GROUP_ADMIN_ARCADMIN = &H00000001<BR>permission = &H00000003<BR><BR><BR> &#060;%if (GROUP_ADMIN_ARCADMIN and permission) &#060;&#062; 0 then%&#062;<BR> &#060;A HREF="groupAAdmins.asp?gID=&#060;%=groupID%&#062;" &#062;Moderators&#060;/A&#062; / <BR> &#060;%end if%&#062;

  2. #2
    Join Date
    Dec 1969

    Default Yes.

    Why didn&#039;t you just try it?<BR><BR>It works fine. You are limited to 0 through &hFFFFFFFF but other than that...<BR><BR>If you are getting a value from a string (e.g., Request.Form?) be sure to convert it to an integer using CLNG before using AND or you might end up doing a logical operation instead of a bitwise one. Only if the two values are both INT or LONG is a bitwise operation done.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts