This discussion is archived
6 Replies Latest reply: Nov 23, 2012 12:15 AM by at-a-boy RSS


at-a-boy Newbie
Currently Being Moderated

I try to write script to clear the existing mapping before loading the new one. I use fMapRestore function (it also clears current mapping), but running my script has no effect on current mapping. Please help me, what's wrong with my script? I'm not an expert in Visual Basic :( May be there are another functions that clear existing mapping?

Sub BefImportMap(strLoc, strType, strFile)

Dim strDim
Dim strLocTarget
Dim strLocSource
Dim strCatSource
Dim strPerSource

strDim = "Account"
strLocTarget = "One-to-many"
strLocSource = "Sample"
strCatSource = "Actual"
strPerSource = "Feb - 2012"

API.MaintenanceMgr.fMapRestore strDim, strLocTarget, strLocSource, strCatSource, strPerSource

End Sub


  • Correct Answers - 10 points
  • Helpful Answers - 5 points