Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nulls ignored by GenHTML
Message
 
 
To
31/03/2008 08:33:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01306877
Message ID:
01306896
Views:
6
Hi Tore,

I wasn't thinking about optimizing code but rather giving some directions on where and how to fix it.

>
>is there any reason why you don't use NVL()?
>lcFieldValue = nvl(lcFieldValue,'')
>
>>Hi Nick,
>>
>>You have access to the source code for GenHtml and _html.vcx and may adjust it to your liking.
>>The small change below should fix the problem but I didn't test it. It should get you started, though.
>>
>>* _html.vcx, _htmltable class
>>* GenerateListTable method
>>* GenerateDetailTable method
>>...
>>		lcFieldValue=this.GetFieldValue(lcField,this.aFieldList[lnCount,2], ;
>>				this.aFieldList[lnCount,3],this.aFieldList[lnCount,4])
>>
>>		* Commented current code skips null values
>>		*IF ISNULL(lcFieldValue)
>>		*	LOOP
>>		*ENDIF
>>		* Try
>>		IF ISNULL(lcFieldValue)
>>			lcFieldValue = ""
>>		ENDIF
>>...
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform