gettingstarted
[Top] [All Lists]

[RB] Converting Properties/values to string?

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: [RB] Converting Properties/values to string?
From: Eirik Karlsen <eikarlse at online dot no>
Date: Tue, 29 Mar 2005 00:26:43 +0200
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <000001c53310$bcda8ce0$ee67aaac at MIKESXP>
Hi,
on saving my app's config (ini) settings I want to do things as simple as
possible.
I plan on storing in a text file.
The variables are of type: Color, Boolean, String, Integer/Double


The problem is Color and Boolean, i.e &cFF00FF and False

Is there a simple way of converting these to string so they can simply be
appended to
the string as shown here:

fileStream.WriteLine "RPMDROcolor="+str(RPMDROcolor)
(this one obviously doesn't work...)

I'd also need to convert these back later on config open.

Any ideas?

--
*******************************************
VISIT MY HOME PAGE:
<http://home.online.no/~eikarlse/index.htm>
LAST UPDATED: 23/08/2003
*******************************************
Regards
Eirik Karlsen

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>