Hi,
I'm trying to create some formfields (textboxes) in MS Word 2002 from VFP 6.0. I can create the textboxes where I want them. However, when I try to set the textinput properties, I get a 'Command failed' error even though the properties are successfully changed. Needless to say, I'm trying to eliminate the error message.
Here's the VBA code I copied from a Word Macro and the VFP Code I'm trying.
Any Suggestions? Thanks in advance.
VBA
With Selection.FormFields(1)
.Name = "txtRate_33"
With .TextInput
.EditType Type:=wdNumberText, Default:="", Format:="#,##0.00"
End With
End With
VFP 6.0
Selection.FormFields(1).TextInput.EditType(1,"","#,##0.00"
&&wdNumberText = 1
I'm trying to create some formfields (textboxes) in MS Word 2002 from VFP 6.0. I can create the textboxes where I want them. However, when I try to set the textinput properties, I get a 'Command failed' error even though the properties are successfully changed. Needless to say, I'm trying to eliminate the error message.
Here's the VBA code I copied from a Word Macro and the VFP Code I'm trying.
Any Suggestions? Thanks in advance.
VBA
With Selection.FormFields(1)
.Name = "txtRate_33"
With .TextInput
.EditType Type:=wdNumberText, Default:="", Format:="#,##0.00"
End With
End With
VFP 6.0
Selection.FormFields(1).TextInput.EditType(1,"","#,##0.00"
&&wdNumberText = 1