Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP style Macro Substitution in VB
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VFP style Macro Substitution in VB
Miscellaneous
Thread ID:
00529860
Message ID:
00529860
Views:
73
I'm writing a VB class that handles opening and managing form's

In VFP you can do:


procedure openform
lparameters cformname

oform = createobject(cformname)
oform.show()



The store to object 'oForm' to an array


In VB, I have:


Public Sub LaunchForm(sFormName As String)

Dim oForm As Form

Set oForm = New sFormName
Load oForm
oForm.Show

End Sub


The problem is that VB doesn't know what to do with the 'sFormName'
variable. I get a 'User-Defined data type not found' error.

How do I pass in a form name to this routine?

Many Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform