[futurebasic] Re: [FB] CFDynamic

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Sun, 27 Jan 2008 16:01:55 -0700
On Jan 27, 2008, at 2:54 PM, David Bailey wrote:

> An example in a folder labeled CFDynamic

An example written by Mr. Prolific, the Wylde one.

> shows how to create and retrieve several types of data (strings,  
> dates,etc) including a rectangle record.  Is it possible to use  
> cfdatacreate to store handles?
BTSOM, but I don't see why not.



>  Specifically text and style handles or the FB get field handle  
> that combines the style and text into a single bundle?

Are you avoiding FB's dynamic arrays because of the comment in the FB  
Reference that  says "Dynamic arrays may not be used to dimension an  
array of handles"?  Don't blame you for that. It is a clear message.  
However,  I've used FB's dynamic array to store allocated (i.e.  
NewPtr) pointers (record array )  with absolutely no issues. I  
haven't tried storing handles with OS X.  Since I haven't looked at  
the dynamic array code in many months, I could be all wet here, but  
something tells me that the comment in the reference manual is either  
outdated or applies to a specific use.  FBtoC implementation of  
dynamic arrays is different from FB's but I don't believe it would  
prevent you from storing handles. It is FB's implementation I haven't  
reviewed in a while.

Brian S.