Jump to content

@SW_SHOW vs. $SW_SHOW


Go to solution Solved by ioa747,

Recommended Posts

Posted

In some code I wrote years back, I see GuiSetState(@SW_SHOW,$frmEdit) but the Help for GuiSetState() has $SW_SHOW. Are  $SW_SHOW and @SW_SHOW different?

  Reveal hidden contents

 

  • Solution
Posted (edited)

@SW_SHOW is macro    $SW_SHOW is variable the value is same (logical)
test with ConsoleWrite(@SW_SHOW & @CRLF),  ConsoleWrite($SW_SHOW & @CRLF)

Edited by ioa747

I know that I know nothing

Posted
  On 11/10/2024 at 3:30 PM, c.haslam said:

So can either be used in all cases?

Expand  

Can you guess ;)
As ioa747 stated: @SW_SHOW is a macro, $SW_SHOW is a variable. Their values are the same.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

prefer @SW_SHOW.
If you use $SW_SHOW, you have to give it a value somewhere, e.g.  $SW_SHOW = 5   or  $SW_SHOW = @SW_SHOW
otherwise it won't work.

Edited by ioa747

I know that I know nothing

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...