HOME | SIGN UP | ACCOUNT | SUBSCRIBE | STORE | TESTIMONIALS | TROUBLESHOOTING | SUPPORT AREA | FIND US ON FACEBOOK | LOGIN
News · Meetings · Articles · Jobs · Downloads · Conferences · Links · Magazines · Training · Consultants · Consulting · Blogs · FAQ · Applications · User groups · User group leaders · Photos · Videos

 ID: 7908Created on: April 5, 2000 11:30Updated on: April 22, 2010 21:31

How to ensure that changing the checkbox.Value type does not break your code
Summary:Checkboxes supports both Numeric and Logical data types. When you check its value, do not just write IF thisform.mycheckbox.Value = 1 or IF thisform.mycheckbox.Value = .t. Check it as IF !EMPTY(thisform.mycheckbox.Value) This way you don't care what the type of value really is and the code will not bomb if you occasionally changed the value type in the Property sheet.
Rating: Rate this entry
Created by:
Nick Neklioudov
Cgi Group Inc.
Halifax, Nova Scotia

Comments
Add a comment

More entries from this member

  1. How can I make my form Modal/Modeless on the fly. June 23, 2000
    You can make your form Modal/Modeless on the fly. This may be useful for preventing users to switch to other forms before they finished entering the data.

  2. How do I translate the HEX encrypted text which I see in some UT messages? April 7, 2000
    This will translate the HEX encrypted text. It is a little wrapper around George Tasker class for automatic translation back and forth and placing the translated text to the Clipboard. You can explicitly pass your text as a parameter, or the program automatically picks the clipboard content.

  3. How to add custom properties to SCATTER NAME-like object for use with GATHER NAME command May 29, 2002
    Instead of trying to add properties with some third-party tools like ADDPROP5.FLL to the native object created with SCATTER NAME command you may try to approach this problem from the other side. You can replace the native SCATTER command with your own function MYSCATTER which may work on any area and create the object from one of standard VFP classes and use its native .AddProperty method.

  4. How to find if the client's birthday is between the given dates June 26, 2000
    Say, you have the client birth date and you want your program to tell you if the birthday is within the certain date range (even when the given range starts in one year and finishes in another). SELECT * FROM CLIENTS ; WHERE BETWEEN(GOMONTH(birth_date,(YEAR(start_date)- YEAR(birth_date))*12), start_date, end_date ) ; OR BETWEEN(GOMONTH(birth_date,(YEAR(end_date)- YEAR(birth_date))*12), start_date, end_date)

  5. What are the alternatives if I am getting Invalid Expression error for Dynamic... grid property July 17, 2000
    If you get an error "Expression is invalid. Use a valid expression for DYNAMIC... property" you may try different type of addressing your PEMs: For example, in Grid.Init() this syntax does not work this.SETALL('DynamicBackColor', 'IIF(ASCAN(This.Parent.aRecNosSelected,RECNO()) > 0, RGB(255,0,0), RGB(255,255,255))' ,"Column") and this works: this.SETALL('DynamicBackColor', 'IIF(ASCAN(thisform.Grid1.aRecNosSelected,RECNO()) > 0, RGB(255,0,0), RGB(255,255,255))' ,"Column")

  6. Where can I find the International Calling Codes? August 19, 1999
    http://www.the-acr.com/codes/cntrycd.htm

  7. Why my DynamicColor Property doesn't work and there is no error message? January 17, 1998
    This works: this.column1.DynamicForeColor = "IIF(some_type = 2, RGB(255,0,0), RGB(0,0,0))" And this does not work: this.column1.DynamicForeColor = "IIF(some_type = 2, RGB(255,0,0), RGB(0,0,0)) " Reason: one extra space before closing quotes.

DateContentDetail
08/05 15:37Jobs.NET Developers, Config ...
07/05 16:13MeetingWelcome to HTML5
06/05 06:40DownloadsVisual Accpro Accounting...
01/05 10:49NewsSouthwest Fox 2013 Speak...
29/04 03:42NewsAdvanced XLS Converter 2...
18/04 11:31News2013 Ceil Silver Ambassador
16/04 16:47MeetingGeneral Meeting - Who Kn...
16/04 02:33NewsAdvanced CSV Converter v...
15/04 18:37MeetingUnit Testing Databases
10/04 05:29MeetingTexting Made Easy
09/04 20:24NewsWest Wind Web Connection...
09/04 10:15MeetingC#/SQL data for VFP deve...
05/04 13:08MeetingRaspberry Pi:Opening and...
05/04 01:31ApplicationsVisual Accpro Accounting...
04/04 16:26MeetingIntroducing SalesForce
04/04 01:41NewsEZShellExtensionsMFC v20...
04/04 00:52NewsDBF Converter v3.55 rele...
30/03 06:19NewsEZShellExtensions.Net v2...
19/03 17:34NewsSouthwest Fox/Xbase++ 20...
13/03 20:30MeetingDatabase Unit Testing Fu...
13/03 10:51NewsDBF Viewer 2000 v4.97 re...
13/03 05:38NewsEZNamespaceExtensions.Ne...
11/03 18:38MeetingNode.js
08/03 15:43MeetingHandling Data in .NET fr...
07/03 03:05NewsDBF Recovery v3.65 released

Copyright © 1993 - 2013 Level Extreme Inc., All Rights Reserved · Telephone: 506-783-9007 Email: mfournier@universalthread.com · Privacy & Security · Copyright · Terms & Conditions · All threads