English
Forum

OCX3a.inc: lay out of Variablennamen in Excel

 

Stephan
Sonneborn
Hello together,

can someone say, why I with the Source no Variablennamen with Excel lay out, The with C, R, s or Z begin?
'***************************************************************************************************
' Header-Files loading                                                                             *
'***************************************************************************************************
 $H Messages.ph
 $H windows.ph
 $H OCX3a.PH
'***************************************************************************************************
'***************************************************************************************************
' Include-Files loading                                                                            *
'***************************************************************************************************
 $I OCX3a.Inc
ocxInit()
WINDOWSTYLE 1 + 2 + 8+ 16 + 512
WINDOW 640,480
Declare end%,Excel&,Ocxtest%,Sheet&,Vorlage&, Region&, KeineAhnung& ,Workbook&, Excelbook&, Range&, Names&, Name& , VarName$
Excel&=ocxcreate("Excel.Application")
ocxput(Excel&,"visible",1)
Workbook&=ocxget(Excel&,"Workbooks")
Excelbook&=ocxMethod(Workbook&,"open","d:\\mappe1.xls")
Sheet&=ocxget(Excelbook&,"ActiveSheet")
Range&=ocxget(Sheet&,"Range","A1")
Names&=ocxGet(Excelbook&,"Names")
Print ocxget(Names&,"Count")

whileloop 26

    SELECT &LOOP

        CASEOF 3,18,19,26

        OTHERWISE
        VarName$ = chr $(64+&LOOP)
        print varname$, &Loop
        ocxMethod(Names&,"Add", VarName$, "Tabelle1!A"+st$(&LOOP) ,1)

    ENDSELECT

ENDWHILE

WhileNot end%

    WaitInput

    if %key=2

        end%=1

    EndIf

EndWhile

ocxdeInit()

code geupdated!
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
04/24/12  
 




Jörg
Sellmeyer
Öhm - I wealth time therefore:
CASEOF 3,18,19,26


the are very The Values in the Loop, The You abfängst, in them but nothing happens.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
04/24/12  
 




Stephan
Sonneborn
Jörg Sellmeyer (24.04.12)
Öhm - I wealth time therefore:
CASEOF 3,18,19,26
the are very The Values in the Loop, The You abfängst, in them but nothing happens.


*LOL*

thanks for Info, Jörg, but I Have The values extra rausgenommen, because very The values a ocx-Feher produced...

Getestet watts the whole under Excel 2010 and Win7 64bit.

I habs now again with Excel 2003 and Win7 32bit probiert: there GEHTS!
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
04/24/12  
 




Jörg
Sellmeyer
Do you have it time with lower case attempts?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
04/24/12  
 




Andreas
Koch
Hello Stephan,

the lying presumably on it, that Excel Z and s in the german for out at ansieht and properly R and C as Row and Column in the english. down stehendem Link these letters for Excel "reservierte Worte"... [...] 

lovely Greeting

Andreas cook
 
04/25/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

10.618 Views

Untitledvor 0 min.
Sven Bader12/03/23
Christof Neuß05/01/21
H.Brill06/22/19
p.specht06/01/18
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie