System.PrivateProfileString

J

jb

Hi All,
When I use System.PrivateProfileString I cannot read the results of a
certain key.

I've tried a couple of different things to make it work to no avail.

Any pointers?

If aStyArrStyleType(i) <> "wdStyleTypeCharacter" Then
For z = 0 To lTabCount - 1

strTabPos = "Tab" & Format(z, "00") & "Pos="
strTabAlign = "Tab" & Format(z, "00") & "Align="
strTabLeader = "Tab" & Format(z, "00") & "Leader="

aStyArrParaTabPos(z, i) = System.PrivateProfileString(strIniFileLoc,
"Style" & Str(i + 1), "Tab" & Format(z, "00") & "Pos=")
aStyArrParaTabAlign(z, i) =
System.PrivateProfileString(strIniFileLoc, "Style" & Str(i + 1),
strTabAlign)
aStyArrParaTabLeader(z, i) =
System.PrivateProfileString(strIniFileLoc, "Style" & Str(i + 1),
strTabLeader)
Next z
End If

..ini file contents

[Style 1]
Name=List1
Size=11
FontType=Times New Roman
StyleType=wdStyleTypeParagraph
Tab00Pos=
Tab00Align=
Tab00Leader=
Tab01Pos=0.635
Tab01Align=6
Tab01Leader=0
Tab02Pos=1.629833
Tab02Align=0
Tab02Leader=0
 
W

Word Heretic

G'day (e-mail address removed),

I normally use Format$(expression) to convert numerics to alphas.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


(e-mail address removed) reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top