Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VarBinary question
Message
De
07/04/2009 18:33:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
VarBinary question
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01393739
Message ID:
01393739
Vues:
132
I'd like to run the code below in Verison 8, It fails on this statement: m.lcPoint = 0h0000000000000000

What is the equivalent statement in Version 8? Thanks
Lparameters lcMenuName

Local lnx, lny, lnRow, lnCol, lcFontStyle

Declare Integer GetCursorPos In win32api As apiGetCursorPos_pemeditor;
	String  @lpPoint

Declare Integer ScreenToClient In win32api As apiScreenToClient_pemeditor ;
	Integer nhWnd, ;
	String  @lpPoint

m.lcPoint = 0h0000000000000000

apiGetCursorPos_pemeditor(@m.lcPoint)
apiScreenToClient_pemeditor(_Screen.HWnd, @m.lcPoint)

m.lnx = CToBin(Substr(m.lcPoint, 1, 4), "4rs")
m.lny = CToBin(Substr(m.lcPoint, 5, 4), "4rs")

m.lcFontStyle = ""

If _Screen.FontBold = .T. Then
	m.lcFontStyle = m.lcFontStyle + "B"
Endif

If _Screen.FontItalic = .T. Then
	m.lcFontStyle = m.lcFontStyle + "I"
Endif

m.lnCol = m.lnx/Fontmetric(6, _Screen.FontName, _Screen.FontSize, m.lcFontStyle)
m.lnRow = m.lny/Fontmetric(1, _Screen.FontName, _Screen.FontSize, m.lcFontStyle)

Define Popup (lcMenuName) shortcut Relative From m.lnRow, m.lnCol
Jim Nelson
Newbury Park, CA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform