OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   CorelDRAW/Corel DESIGNER VBA (http://forum.oberonplace.com/forumdisplay.php?f=16)
-   -   Control Variable in corel 2018 VBA not working (http://forum.oberonplace.com/showthread.php?t=24813)

aakkaarr 22-06-2018 12:04

When passing TextBox in function corel 2018 does not take control as control
 
When passing TextBox in function corel 2018 does not take control as control
Control Variable in corel 2018 VBA not working.
Is someone also facing same problem

SunkRaised Me.Label300, -1

Public Sub SunkRaised(ctl As Control, i As Integer)
If i = -1 Then
ctl.SpecialEffect = fmSpecialEffectSunken
ElseIf i = 1 Then
ctl.SpecialEffect = fmSpecialEffectRaised
End If
End Sub

it says error 13

shark 29-06-2018 08:37

faced a similar situation in X8. Solved the problem using the prefix. MSForms.Control or something like it

aakkaarr 05-07-2018 09:19

Thanks Shark. Msforms.Control worked as charm
I was able to run recentfiles gms in 2018


All times are GMT -5. The time now is 06:12.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com