| View previous topic :: View next topic |
| Author |
Message |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Mon Feb 24, 2003 6:13 pm Post subject: Invalid function? |
|
|
When running my program I get an invalid function message on this line:
| Code: | | If @ZERO = @dlgtext(Engines) |
Any help guys?
The code above is to check if the user selected an item in a COMBO. _________________
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Feb 24, 2003 6:19 pm Post subject: |
|
|
Just use this:
if @dlgtext(Engines)
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Mon Feb 24, 2003 7:21 pm Post subject: |
|
|
I think Mac meant:
If @ZERO(@dlgtext(Engines))
moke |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Feb 24, 2003 7:31 pm Post subject: |
|
|
Actually I didn't - I was pointing out how to check for a value.
If I was gonna check for a NULL value I'd use @not() anyway.
if @not(@dlgtext(Engines))
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Mon Feb 24, 2003 7:37 pm Post subject: |
|
|
| My bad, I assumed GeoTrail was checking to see if a value was zero. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Feb 24, 2003 7:45 pm Post subject: |
|
|
Good point - he was trying to use @zero().
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Mon Feb 24, 2003 8:13 pm Post subject: |
|
|
Actually. I wanted to use the ZERO function to see if the user selected an item in the combo. I might have misunderstood it's function  _________________
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Feb 24, 2003 8:26 pm Post subject: |
|
|
Actually @zero() checks for a zero value, although it returns
FALSE if the value isn't zero.
@not() and @null() check for an empty (NULL) value to start with.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Mon Feb 24, 2003 9:50 pm Post subject: |
|
|
Thanks Mac.
I tried the if @dlgtext(Engines) solution and it seems to work fine  _________________
 |
|
| Back to top |
|
 |
|