home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
SQLite and NULL values
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="waeberd" data-source="post: 3119" data-attributes="member: 10343"><p>ok, found it out!</p><p></p><p>[code] return ((string)arr[iCol]).Trim();[/code]</p><p></p><p>Need to add a null-check before this line:</p><p></p><p>[code]if (arr[iCol] == null) { return "";}[/code]</p><p></p><p>Thanks & sorry for posting self-resolving topics <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> </p><p>(C# strings can be null, unlike in Delphi......)</p><p></p><p>Cheers,</p><p></p><p>Daniel</p></blockquote><p></p>
[QUOTE="waeberd, post: 3119, member: 10343"] ok, found it out! [code] return ((string)arr[iCol]).Trim();[/code] Need to add a null-check before this line: [code]if (arr[iCol] == null) { return "";}[/code] Thanks & sorry for posting self-resolving topics :D (C# strings can be null, unlike in Delphi......) Cheers, Daniel [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
SQLite and NULL values
Contact us
RSS
Top
Bottom