vb的一个小问题 - VC/MFC / 基础类
Private Sub Command1_Click()
mytext.Text = Str(taozi(1))
End Sub
Private Sub Form_load()
Dim begin As CommandButton
Dim mytext As TextBox
Set begin = Command1
Set mytext = Text1
mytext.Text = ""
begin.Caption = "确定"
End Sub
Public Function taozi(nihao As Integer) As Integer
taozi = nihao
For i = 1 To 7 Step 1
taozi = (taozi + 1) * 2
Next i
End Function
为什么mytext.text错了,如果原来窗体上没有command1和text1
而我想自己用set建立该如何写。我用set+new发现有错误!!
友情帮顶,友情帮顶
{{
相关问答:
在vb中如何读取Word内容(包含表格,图片,等)
竟然不是zero。
不知道怎么实现的不要说话
这个只能读文本,
VB code:
Private Sub Command1_Click()
Dim WordApp As Object
Set WordApp = CreateObject(& ......
数据库里有一个字段的内容是二进制,怎么才能把这个二进制读出来
使用字节流对象可以实现
例如现在数据库里有个字段的内容是0x504B03040A0000000800407F263C3B02465390000000820000000A0000006273CECACCE22E7478 ......
form1中有text1-8, 和command1
text8中为程序代码(生成窗体为form2(已做好))
单击command1后将text2中的代码生成EXE到d:\ 并且text1-7分别对应
产品名 公司名 合法版权 合法商标 文件描述 注释 标题
......
谁能帮我把下面这些代码改成VB形式的,多谢了,急用~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......