If this is your first visit to our forums, welcome!
Do you use Windows 7 or Windows Vista? Are you having problems compiling your application in the Studio? I'm not talking about compiler errors, I'm talking about the Studio reporting that it cannot delete the old application .exe file before compiling the new one! If you are seeing that problem then read on, I may have the solution (or at least a little good advice)... [B]System Tune Up[/B] Ages ago I had turned off the windows [I]Application Experience[/I] service ...
Updated 1-Dec-2013 at 12:44 PM by Vincent Oorsprong (Images enlarged)
The new Visual DataFlex grid classes in Visual DataFlex 16.0 (cCJGrid, cDbCJGrid, etc) do not expose an interface for setting the grid control's various Fonts. This turned out to be beyond the scope for the VDF 16.0 project, however it is still possible to set all of the control's fonts via the COM interface. For example here is how you can modify the default Font used to display data in the Grid's cells: You would write the following event handler in your grid object... ...
In the [URL="http://support.dataaccess.com/forums/blog.php?b=59"]previous article[/URL] I explained how to access the workspace paths in a Create New wizard. The information is retrieved via the Studio Workspace file (.sws) that is passed to the wizard via a temporary config file. Accessing the wizard's temporary config file is explained in [URL="http://support.dataaccess.com/forums/blog.php?b=56"]part one[/URL] of this series. In this article I will talk about the ...
In the [URL="http://support.dataaccess.com/forums/blog.php?b=56"]previous article[/URL] I introduced the config file that the Studio generates each time it launches a Create New wizard. The name and path of this config file is passed to the launched application and the file contains information about your project that is useful to a Create New wizard application. In this article I will talk in more detail about one particular section of data in the config file: the [Workspace] ...
Have you ever wanted to write your own wizard and add it to the Studio's Create New dialog? Adding a wizard application to the Create New dialog is managed by the "Configure Create New" option in the "Tools" menu. That is the easy part, But how can your wizard access the important information about your workspace that it needs in order to do anything useful? Come to think of it, how do the "standard wizards" get the Studio to open the files that they just ...
Updated 12-Nov-2009 at 02:11 PM by John van Houten
The Visual DataFlex On_Key command is the recommended technique to use when creating Hot Key assignments in your application. But there are certain key combinations that are not available to the On_Key command. For example the CTRL+SHIFT+TAB key combination cannot be assigned using On_Key. Ever since Visual DataFlex 12.1 there is an alternative way to assign a hot key by using the cCJAction class. This class is part of the CodeJock commandbar set of wrapper classes and supports a property ...
Updated 20-Nov-2009 at 01:28 PM by John van Houten
In [URL="http://support.dataaccess.com/forums/blog.php?b=48"]Part One[/URL] I described the problem of performing lookups for each member of an array and how to use a cache when performing lookups repeatedly with multiple arrays sharing mostly the same members. We left part one after describing a caching technique that required further optimization. In this article we will explore different array searching techniques, using the built-in VDF Search Array functions, to optimize ...
Updated 26-Oct-2009 at 11:44 AM by John van Houten
A common programming problem is the need to process sets of data that are not part of your database. Typically sets of data that are stored in arrays. If the data is structured then you would use arrays of type [I]struct[/I]. For example... [code]Struct tNameData String sName Date dDateOfBirth End_Struct tNameData[] NameData // declares an array of type tNameData [/code]Wherever you have arrays of data like this you will inevitably need ...
In Visual DataFlex 14.1 we added data dictionary modeling to the Studio. This task used to be performed by the Database Builder tool. Database Builder used a quite primitive approach to source code modeling. It relied on special marker comments and a set of hard-coded symbols to understand how to model a data dictionary class. The Studio's modeler is more powerful and flexible. It properly analyzes the source code of the data dictionary file and all of the files used ...
In a recent forum message a VDF developer wrote: [quote]I have an issue when a client runs a Winprint II report, then goes back and runs a Winprint 1 Report in the same application. (Winprint error. Could not create a new page!)[/quote]The problem is due to this program sending instructions from a WinPrint 1 report to the WinPrint 2 DLL or visa versa. There are two global winprint objects. One that directs printing instructions to the WinPrint 1 DLL and one that directs ...
With Visual DataFlex 2008 and above, you no longer need to use meta-tags to declare every change to a property's initial value in a class declaration. Take a look at the following example: [code] Class cCloseButton is a Button Procedure Construct_Object Set Label to 'Close' End_Procedure End_Class[/code]Prior to version 14.1 if you created this cCloseButton class and add it to a view in the Studio's Visual Designer the label doesn’t appear. To ...
During the development of Visual DataFlex 12.0 we modified the compiler to track any changes to source code that belong to a precompiled package. For example, let's say you have a precompiled package (MyPrecompile.pkg) and one of the files used by MyPrecompile.pkg was edited since it was last precompiled. Now, when you go to compile a project that uses this precompile, the Compiler would detect the change and raise an error that the precompile is out of date. This was a good change ...