Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5441
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: DBServer Access Method |
| Date | Wed, 3 Jul 2013 12:58:32 +0200 |
| Lines | 32 |
| Message-ID | <b3ieepFmd7qU1@mid.individual.net> (permalink) |
| References | <e7d0b548-8548-47a5-89e5-0d36f33c6719@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| X-Trace | individual.net /eeiK61+Pm7BXsLGXqS2tA/Ult09gLWwUJF5kXSqibq2KxKYM= |
| Cancel-Lock | sha1:JGvwp3w6BHmQFym5NBUpnF5fkis= |
| User-Agent | XanaNews/1.18.1.6 |
| Xref | csiph.com comp.lang.clipper.visual-objects:5441 |
Show key headers only | View raw
Hi Mike, > I have a function that takes a string parameter which can be a > fieldname or access method I want to retrieve the field value or > access value > > IF !Empty(oS2) .and. oS2:FieldPos(cFld) > 0 .or. IsAccess(oS2, > String2Symbol(cFld)) uValue := oS2:FieldGet(cFld) //crashes if > IsAccess > ELSE > uValue := "" > ENDIF > It must be possible to execute the access but I can't think how. try this:; symField := String2Symbol( cFld ) do case case IsAccess( oS2, symField ) uValue := IVarGet( oS2, symField ) case oS2:FieldPos( symField ) > 0 uValue := oS2:FieldGet( symField ) endcase HTH Wolfgang --
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
DBServer Access Method MikeScholl@btinternet.com - 2013-07-03 03:09 -0700
Re: DBServer Access Method "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-07-03 12:58 +0200
Re: DBServer Access Method Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-07-03 15:54 +0200
Re: DBServer Access Method "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-07-03 16:57 +0200
Re: DBServer Access Method Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-07-03 13:05 +0200
Re: DBServer Access Method D.J.W. van Kooten <public@ic2remove.this.com> - 2013-07-03 13:12 +0200
Re: DBServer Access Method Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-07-03 14:32 +0200
Re: DBServer Access Method D.J.W. van Kooten <public@ic2remove.this.com> - 2013-07-03 15:27 +0200
Re: DBServer Access Method MikeScholl@btinternet.com - 2013-07-03 09:58 -0700
csiph-web