Skip to content

Commit 8ab76ae

Browse files
committed
Add index number to question's name in XML
1 parent a348b34 commit 8ab76ae

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

MoodleQuestionsWordTemplate.dotm

8.29 KB
Binary file not shown.

ProjectSpecific/GIFT.bas

+7
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,7 @@ End Function
23542354
Private Function ParseText(Text) As TParseText
23552355

23562356
Dim TXT As TParseText
2357+
Dim strCount As String
23572358
Dim Separator As String
23582359

23592360
Separator = Replace(Format(0, "0.0"), "0", "")
@@ -2409,6 +2410,12 @@ Private Function ParseText(Text) As TParseText
24092410
Else
24102411
TXT.Name = Left(Text, 100) & "..."
24112412
End If
2413+
strCount = ""
2414+
If Questions.Count + 1 < 10 Then
2415+
strCount = "0"
2416+
End If
2417+
strCount = strCount & (Questions.Count + 1)
2418+
TXT.Name = strCount & " " & TXT.Name
24122419
End If
24132420

24142421
TXT.Text = Text

0 commit comments

Comments
 (0)