代码生成问题:( [英] code generate problem :(

查看:116
本文介绍了代码生成问题:(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能帮我吗..
我无法转到下一个块的下一个块..
我想从设计流程图中编写代码..i显示了逐步过程.从中我想从中生成代码...

我在vb..help pl ..中是新的,这是我的学校项目.如果我不明白这一点,我就无法毕业:(请请请

这是我使用的代码.

can u help me..
i cant go to the nextblock which is the connction to the nextblock..
i want to make a code from the design flowchart..i shows the step by step process. from it i want to generate code from it ...

im new in vb..help pls.. its my school project. i cant graduate if i dont get this :( pls pls pls

here is the code i use.

Dim I&, FlowPoss&
   Dim wIsolator() As String
   Dim CLine&
   Static ProgMode As Byte
   Dim block As cBlock
   Dim flow As Block_Collection
       For I = 1 To 30
       txt.TextboxLine(I) = ""
   Next

    For I =  1 To flow.Count - 1 ''error "block variable not set" ''wat this is means?
       txt.TextboxLine(I) = " "
       FlowPoss = I
       If flow(I).sCaption = "Start" Then
           FlowPoss = I
           Exit For
        End If
    Next
    txt.TextboxLine(1) = "Sub Main()" & vbCrLf
    CLine = 1
      On Error Resume Next
      Do
         CLine = CLine + 1 ->''error "block variable not set" wat  ''this is means?
        '' theBlockCollection
         If getNextBlock(block, "Stop") = "Stop" Then Exit Do
     
   Select Case getNextBlock(block, " ")
            Case "Output": txt.TextboxLine(CLine) = "   MsgBox " '' & FlowShape1(GetNextControl(FlowPoss)).Caption & vbCrLf
   End Select
    ''FlowPoss = GetNextControl(FlowPoss)
    Loop
      txt.TextboxLine(CLine) = "End Sub"



请大家,我非常需要它..我想通过我的项目..所以我可以毕业.



pls guys i need it so badly ..i want to pass my project..so i can graduate.

推荐答案

未设置块变量"表示您已声明一个对象,但没有实例化它.例如以下行:
"block variable not set" means that you have declared an object but not instantiated it. For instance this line:
Dim flow As Block_Collection


随后应为:


Should be followed by:

Set flow = New Block_Collection



或定义了Block_Collection的API中提供的任何工厂方法或静态变量.

在使用变量flow之前.



or whatever factory method or static variable you have available from the API where Block_Collection is defined.

before you use the variable flow.


将昏暗的方块作为block_collection
是类模块...

block_collection是创建新对象..

不知道荣是什么..

我只想生成一个已连接形状的代码..
我可以发布下载的.zip吗?.

我正在修改此程序...
dim block as block_collection
is class module ...

block_collection is to create new object..

dont know what is rong ..

i just want to generate a code form the shape is been connected..
can i post the .zip that i down load..

im modifying this program ...


只需添加一下,您的学校在教给您在现实世界中没有任何价值的技能. VB.NET是免费的,易于学习,目前在实际项目中得到支持和使用.您应该与您的老师讨论这个问题. VB6是垃圾,并且已经有近十年不受支持了.
Just to add, your school is teaching you skills with no value in the real world. VB.NET is free, easier to learn, and is currently supported and used in real world projects. You should discuss this with your teacher. VB6 is rubbish, and has been unsupported for almost a decade.


这篇关于代码生成问题:(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆